0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/autobrr: make use of package option

The package option was defined, but the generated systemd service was
hardcoded to use pkgs.autobrr.
This commit is contained in:
Pedro Alves 2025-02-13 13:31:29 +00:00
parent 6c64d6daf9
commit ce9137b32d

View file

@ -76,7 +76,7 @@ in
LoadCredential = "sessionSecret:${cfg.secretFile}";
StateDirectory = "autobrr";
ExecStartPre = "${lib.getExe pkgs.bash} -c '${templaterCmd}'";
ExecStart = "${lib.getExe pkgs.autobrr} --config %S/autobrr";
ExecStart = "${lib.getExe cfg.package} --config %S/autobrr";
Restart = "on-failure";
};
};