nixos/snapserver: add package option
This commit is contained in:
@@ -80,6 +80,8 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = lib.options.mkPackageOption pkgs "snapcast" { };
|
||||||
|
|
||||||
listenAddress = lib.mkOption {
|
listenAddress = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "::";
|
default = "::";
|
||||||
@@ -286,7 +288,7 @@ in {
|
|||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
ExecStart = "${pkgs.snapcast}/bin/snapserver --daemon ${optionString}";
|
ExecStart = "${cfg.package}/bin/snapserver --daemon ${optionString}";
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
LimitRTPRIO = 50;
|
LimitRTPRIO = 50;
|
||||||
LimitRTTIME = "infinity";
|
LimitRTTIME = "infinity";
|
||||||
|
|||||||
Reference in New Issue
Block a user