mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #63726 from davidtwco/lidarr/specify-package
nixos/lidarr: allow specifying package
This commit is contained in:
commit
dbb00bfcbf
1 changed files with 8 additions and 1 deletions
|
@ -9,6 +9,13 @@ in
|
||||||
options = {
|
options = {
|
||||||
services.lidarr = {
|
services.lidarr = {
|
||||||
enable = mkEnableOption "Lidarr";
|
enable = mkEnableOption "Lidarr";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.lidarr;
|
||||||
|
defaultText = "pkgs.lidarr";
|
||||||
|
description = "The Lidarr package to use";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,7 +29,7 @@ in
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "lidarr";
|
User = "lidarr";
|
||||||
Group = "lidarr";
|
Group = "lidarr";
|
||||||
ExecStart = "${pkgs.lidarr}/bin/Lidarr";
|
ExecStart = "${cfg.package}/bin/Lidarr";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|
||||||
StateDirectory = "lidarr";
|
StateDirectory = "lidarr";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue