diff --git a/modules/audio.nix b/modules/audio.nix index a4e901c..c062ccd 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -38,17 +38,19 @@ in { }; pulse.enable = true; wireplumber.enable = true; - config.pipewire-pulse = let - defaultConf = lib.importJSON - "${inputs.nixpkgs}/nixos/modules/services/desktops/pipewire/daemon/pipewire-pulse.conf.json"; - in lib.recursiveUpdate defaultConf { - "pulse.properties" = { - "server.address" = [ "unix:native" "tcp:127.0.0.1:4713" ]; - }; - }; }; security.rtkit.enable = true; + # Enable pipewire-pulse's audio via TCP + environment.etc."pipewire/pipewire-pulse.conf.d/pulse-server.conf".text = '' + pulse.properties = { + server.address = [ + "unix:native" + "tcp:127.0.0.1:4713" + ] + } + ''; + # Set up Mopidy services.mopidy = { enable = true;