Move pipewire custom settings to /etc/pipewire
This commit is contained in:
parent
112595d12c
commit
a2458ac39d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue