diff --git a/machines/boxy/configuration.nix b/machines/boxy/configuration.nix index 43dd77b..462ee4a 100644 --- a/machines/boxy/configuration.nix +++ b/machines/boxy/configuration.nix @@ -19,10 +19,6 @@ with lib; autologin = true; wayland = true; }; - spotifyd = { - enable = true; - deviceType = "t_v"; - }; users.enable = true; }; diff --git a/roles/spotifyd/default.nix b/roles/spotifyd/default.nix index e3e056f..2db7c22 100644 --- a/roles/spotifyd/default.nix +++ b/roles/spotifyd/default.nix @@ -8,38 +8,29 @@ in { options.roles.spotifyd = { enable = mkEnableOption "Enable the spotifyd role"; - deviceType = mkOption { - default = "computer"; - }; }; config = mkIf cfg.enable { roles.audio.enable = true; - hardware.pulseaudio.enable = true; - hardware.pulseaudio.extraConfig = '' - unload-module module-native-protocol-unix - load-module module-native-protocol-unix auth-anonymous=1 - ''; - hardware.pulseaudio.systemWide = true; services.spotifyd = { enable = true; settings = { global = { use_mpris = false; - backend = "pulseaudio"; + backend = "alsa"; + device = "sysdefault"; bitrate = 320; cache_path = ""; - zeroconf_port = 5354; + zeroconf_port = 1234; autoplay = false; - device_type = cfg.deviceType; }; }; }; networking.firewall.allowedTCPPorts = [ - 5354 + 1234 57621 ]; networking.firewall.allowedUDPPorts = [