nixos/sonarr: add package option
This commit is contained in:
parent
21fa5a05ef
commit
2c9700acf0
@ -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";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user