about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz2024-09-24 09:53:24 -0700
committerRobert Schütz2024-09-24 09:53:24 -0700
commit7cdda564e00cca1a146df5620daff06bd7db664e (patch)
tree948d169fd5ab9b9134b6344214888cf61f7f99fc
parent2b4480d1611182ff31c0d29fdcd862f1ce417e33 (diff)
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"
-rw-r--r--nixos/modules/services/web-apps/immich.nix2
1 files changed, 1 insertions, 1 deletions
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;