nixos/prowlarr: add package option
This commit is contained in:
parent
6c0da50f7f
commit
b853c70661
|
@ -11,6 +11,8 @@ in
|
||||||
services.prowlarr = {
|
services.prowlarr = {
|
||||||
enable = mkEnableOption (lib.mdDoc "Prowlarr");
|
enable = mkEnableOption (lib.mdDoc "Prowlarr");
|
||||||
|
|
||||||
|
package = mkPackageOptionMD pkgs "prowlarr" { };
|
||||||
|
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -29,7 +31,7 @@ in
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
StateDirectory = "prowlarr";
|
StateDirectory = "prowlarr";
|
||||||
ExecStart = "${pkgs.prowlarr}/bin/Prowlarr -nobrowser -data=/var/lib/prowlarr";
|
ExecStart = "${cfg.package}/bin/Prowlarr -nobrowser -data=/var/lib/prowlarr";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue