From 7cdda564e00cca1a146df5620daff06bd7db664e Mon Sep 17 00:00:00 2001 From: Robert Schütz Date: Tue, 24 Sep 2024 09:53:24 -0700 Subject: nixos/immich: override machine-learning with cfg.package Otherwise they could use different versions: nix-repl> (immich.overrideAttrs { version = "0"; }).machine-learning.version "1.115.0" --- nixos/modules/services/web-apps/immich.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/immich.nix b/nixos/modules/services/web-apps/immich.nix index 1e46f3b855df..ca6b6dd62413 100644 --- a/nixos/modules/services/web-apps/immich.nix +++ b/nixos/modules/services/web-apps/immich.nix @@ -290,7 +290,7 @@ in wantedBy = [ "multi-user.target" ]; inherit (cfg.machine-learning) environment; serviceConfig = commonServiceConfig // { - ExecStart = lib.getExe cfg.package.machine-learning; + ExecStart = lib.getExe (cfg.package.machine-learning.override { immich = cfg.package; }); CacheDirectory = "immich"; User = cfg.user; Group = cfg.group; -- cgit 1.4.1