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"
This commit is contained in:
Robert Schütz 2024-09-24 09:53:24 -07:00
parent 2b4480d161
commit 7cdda564e0

View File

@ -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;