mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
nixos/snapserver: add package option (#354090)
This commit is contained in:
commit
0a436289e1
@ -80,6 +80,8 @@ in {
|
||||
'';
|
||||
};
|
||||
|
||||
package = lib.options.mkPackageOption pkgs "snapcast" { };
|
||||
|
||||
listenAddress = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "::";
|
||||
@ -286,7 +288,7 @@ in {
|
||||
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
ExecStart = "${pkgs.snapcast}/bin/snapserver --daemon ${optionString}";
|
||||
ExecStart = "${cfg.package}/bin/snapserver --daemon ${optionString}";
|
||||
Type = "forking";
|
||||
LimitRTPRIO = 50;
|
||||
LimitRTTIME = "infinity";
|
||||
|
Loading…
Reference in New Issue
Block a user