euhadra: publish pulseaudio server

This commit is contained in:
Gabriel Ebner 2017-09-23 14:34:29 +02:00
parent aee6a3d0ae
commit 78360f34f2

@ -40,12 +40,27 @@
restore_paused "yes" restore_paused "yes"
''; '';
}; };
networking.firewall.allowedTCPPorts = [ config.services.mpd.network.port ];
networking.firewall.allowedTCPPorts = [
config.services.mpd.network.port
4713 # pulseaudio
];
environment.systemPackages = with pkgs; [ mpc_cli ]; environment.systemPackages = with pkgs; [ mpc_cli ];
services.xserver.vaapiDrivers = [ pkgs.vaapiIntel ]; hardware.opengl.extraPackages = [ pkgs.vaapiIntel ];
nixpkgs.config.mpv.vaapiSupport = true; nixpkgs.config.mpv.vaapiSupport = true;
hardware.pulseaudio = {
zeroconf.publish.enable = true;
tcp = {
enable = true;
anonymousClients.allowedIpRanges = [
"127.0.0.1"
"10.57.0.0/16"
];
};
};
} }