diff --git a/nixos/modules/services/audio/spotifyd.nix b/nixos/modules/services/audio/spotifyd.nix index 2264d7c39c6b..74cc60fce0f7 100644 --- a/nixos/modules/services/audio/spotifyd.nix +++ b/nixos/modules/services/audio/spotifyd.nix @@ -23,6 +23,8 @@ in services.spotifyd = { enable = lib.mkEnableOption "spotifyd, a Spotify playing daemon"; + package = lib.mkPackageOption pkgs "spotifyd" { }; + config = lib.mkOption { default = ""; type = lib.types.lines; @@ -43,6 +45,7 @@ in . ''; }; + }; }; @@ -64,7 +67,7 @@ in description = "spotifyd, a Spotify playing daemon"; environment.SHELL = "/bin/sh"; serviceConfig = { - ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --cache-path /var/cache/spotifyd --config-path ${spotifydConf}"; + ExecStart = "${cfg.package}/bin/spotifyd --no-daemon --cache-path /var/cache/spotifyd --config-path ${spotifydConf}"; Restart = "always"; RestartSec = 12; DynamicUser = true;