nixos/jackett: add package option
This allows users of the module to override the package to a newer version. Particularly useful as Jackett warns that old versions may not work.
This commit is contained in:
parent
5510c82fde
commit
7f32961ea2
1 changed files with 8 additions and 1 deletions
|
@ -34,6 +34,13 @@ in
|
|||
default = "jackett";
|
||||
description = "Group under which Jackett runs.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.jackett;
|
||||
defaultText = "pkgs.jackett";
|
||||
description = "Jackett package to use.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -51,7 +58,7 @@ in
|
|||
Type = "simple";
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
ExecStart = "${pkgs.jackett}/bin/Jackett --NoUpdates --DataFolder '${cfg.dataDir}'";
|
||||
ExecStart = "${cfg.package}/bin/Jackett --NoUpdates --DataFolder '${cfg.dataDir}'";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue