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:43:12 +00:00
parent 6c64d6daf9
commit ce9137b32d
+1 -1
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";
};
};