diff --git a/euhadra.nix b/euhadra.nix index cccde7e..bbafe20 100644 --- a/euhadra.nix +++ b/euhadra.nix @@ -40,12 +40,27 @@ 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 ]; - services.xserver.vaapiDrivers = [ pkgs.vaapiIntel ]; + hardware.opengl.extraPackages = [ pkgs.vaapiIntel ]; 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" + ]; + }; + }; + }