0
0
Fork 0
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:
Elis Hirwing 2019-06-27 19:06:51 +02:00 committed by GitHub
commit dbb00bfcbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";