{ config, lib, pkgs, ... }: { # Enable ALSA sound.enable = true; # Configure PulseAudio with mopidy tweaks hardware.pulseaudio = { enable = true; tcp = { enable = true; anonymousClients.allowedIpRanges = [ "127.0.0.1" ]; }; }; }