2021-08-21 16:47:21 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
networking.firewall.allowedTCPPorts = [ 4713 ];
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
hardware.pulseaudio.systemWide = true;
|
2021-11-04 19:18:34 +00:00
|
|
|
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
2021-08-21 16:47:21 +00:00
|
|
|
hardware.pulseaudio.tcp.enable = true;
|
|
|
|
hardware.pulseaudio.tcp.anonymousClients.allowedIpRanges = [ "127.0.0.0/8" "::/64" "10.23.42.0/24" ];
|
2021-10-22 22:25:25 +00:00
|
|
|
environment.variables.PULSE_SERVER = "127.0.0.1";
|
2021-11-04 19:18:34 +00:00
|
|
|
hardware.pulseaudio.extraConfig = ''
|
|
|
|
unload-module module-native-protocol-unix
|
|
|
|
load-module module-native-protocol-unix auth-anonymous=1
|
|
|
|
'';
|
2021-08-21 16:47:21 +00:00
|
|
|
}
|