diff --git a/nixos/modules/services/audio/snapserver.nix b/nixos/modules/services/audio/snapserver.nix index c1e5f8cf43e1..189923f0ed96 100644 --- a/nixos/modules/services/audio/snapserver.nix +++ b/nixos/modules/services/audio/snapserver.nix @@ -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";