mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
Merge pull request #299755 from Ramblurr/fix/roon-server-pkg
nixos/roon-server: add package option
This commit is contained in:
commit
813ae91f20
@ -9,6 +9,7 @@ in {
|
||||
options = {
|
||||
services.roon-server = {
|
||||
enable = mkEnableOption (lib.mdDoc "Roon Server");
|
||||
package = lib.mkPackageOption pkgs "roon-server" { };
|
||||
openFirewall = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
@ -43,7 +44,7 @@ in {
|
||||
environment.ROON_ID_DIR = "/var/lib/${name}";
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.roon-server}/bin/RoonServer";
|
||||
ExecStart = "${lib.getExe cfg.package}";
|
||||
LimitNOFILE = 8192;
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
|
Loading…
Reference in New Issue
Block a user