Fix spotifyd #2
2 changed files with 7 additions and 2 deletions
|
@ -5,8 +5,12 @@
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware.pulseaudio.enable = true;
|
hardware.pulseaudio.enable = true;
|
||||||
hardware.pulseaudio.systemWide = true;
|
hardware.pulseaudio.systemWide = true;
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudio;
|
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
||||||
hardware.pulseaudio.tcp.enable = true;
|
hardware.pulseaudio.tcp.enable = true;
|
||||||
hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [ "127.0.0.0/8" "::/64" "10.23.42.0/24" ];
|
hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [ "127.0.0.0/8" "::/64" "10.23.42.0/24" ];
|
||||||
environment.variables.PULSE_SERVER = "127.0.0.1";
|
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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,6 @@
|
||||||
settings.zeroconf_port = 18572;
|
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 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue