From 36783497699e996cd75812d7631fe2b701fa0d35 Mon Sep 17 00:00:00 2001 From: lagertonne Date: Thu, 4 Nov 2021 20:18:34 +0100 Subject: [PATCH 1/2] Fix pulseaudio so that spotifyd works okay --- shared-services/pulseaudio.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shared-services/pulseaudio.nix b/shared-services/pulseaudio.nix index cdc48fe..a3b516b 100644 --- a/shared-services/pulseaudio.nix +++ b/shared-services/pulseaudio.nix @@ -5,8 +5,12 @@ sound.enable = true; hardware.pulseaudio.enable = true; hardware.pulseaudio.systemWide = true; - hardware.pulseaudio.package = pkgs.pulseaudio; + hardware.pulseaudio.package = pkgs.pulseaudioFull; hardware.pulseaudio.tcp.enable = true; hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [ "127.0.0.0/8" "::/64" "10.23.42.0/24" ]; environment.variables.PULSE_SERVER = "127.0.0.1"; + hardware.pulseaudio.extraConfig = '' + unload-module module-native-protocol-unix + load-module module-native-protocol-unix auth-anonymous=1 + ''; } From aaaff04b8c558d838d1e912299c29813d725c265 Mon Sep 17 00:00:00 2001 From: lagertonne Date: Thu, 4 Nov 2021 20:21:19 +0100 Subject: [PATCH 2/2] Add correct ports to fix spotify-connect detection --- shared-services/spotifyd.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared-services/spotifyd.nix b/shared-services/spotifyd.nix index 1988632..801c835 100644 --- a/shared-services/spotifyd.nix +++ b/shared-services/spotifyd.nix @@ -6,5 +6,6 @@ settings.zeroconf_port = 18572; }; - networking.firewall.allowedTCPPorts = [ config.services.spotifyd.settings.zeroconf_port ]; + networking.firewall.allowedTCPPorts = [ 4070 config.services.spotifyd.settings.zeroconf_port ]; + networking.firewall.allowedUDPPorts = [ 5353 ]; }