nixos/snapserver: add package option (#354090)

This commit is contained in:
Martin Weinelt 2024-11-06 22:49:10 +01:00 committed by GitHub
commit 0a436289e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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