From a2458ac39ddff2d805de73b890ffa9530f680f3e Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 28 Mar 2023 23:07:48 +0200 Subject: [PATCH] Move pipewire custom settings to /etc/pipewire --- modules/audio.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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;