Move pipewire custom settings to /etc/pipewire

This commit is contained in:
coolneng 2023-03-28 23:07:48 +02:00
parent 112595d12c
commit 08306b4749
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 10 additions and 8 deletions

View File

@ -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;