diff options
author | Rafal Proszowski <paroxp@users.noreply.github.com> | 2022-10-27 13:49:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 08:49:23 -0400 |
commit | 2c9700acf0fbf3fe75082916264d409f6e194c4f (patch) | |
tree | 3baa0acad9e36dcd0c0809c1057587302f645a48 /nixos/modules | |
parent | 21fa5a05ef05a042b2be298a9e601bdad5159145 (diff) |
nixos/sonarr: add package option
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/misc/sonarr.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/sonarr.nix b/nixos/modules/services/misc/sonarr.nix index 5a5c9b5aaad86..65c51d9677d9e 100644 --- a/nixos/modules/services/misc/sonarr.nix +++ b/nixos/modules/services/misc/sonarr.nix @@ -35,6 +35,15 @@ in default = "sonarr"; description = lib.mdDoc "Group under which Sonaar runs."; }; + + package = mkOption { + type = types.package; + default = pkgs.sonarr; + defaultText = literalExpression "pkgs.sonarr"; + description = lib.mdDoc '' + Sonarr package to use. + ''; + }; }; }; @@ -52,7 +61,7 @@ in Type = "simple"; User = cfg.user; Group = cfg.group; - ExecStart = "${pkgs.sonarr}/bin/NzbDrone -nobrowser -data='${cfg.dataDir}'"; + ExecStart = "${cfg.package}/bin/NzbDrone -nobrowser -data='${cfg.dataDir}'"; Restart = "on-failure"; }; }; |