From ce9137b32dc6bfa747ea78fdb683f0a12571574a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 13 Feb 2025 13:31:29 +0000 Subject: [PATCH] nixos/autobrr: make use of package option The package option was defined, but the generated systemd service was hardcoded to use pkgs.autobrr. --- nixos/modules/services/misc/autobrr.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/autobrr.nix b/nixos/modules/services/misc/autobrr.nix index 4694b8e80ed3..c898351c4316 100644 --- a/nixos/modules/services/misc/autobrr.nix +++ b/nixos/modules/services/misc/autobrr.nix @@ -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"; }; };