Move pipewire custom settings to /etc/pipewire
This commit is contained in:
parent
112595d12c
commit
08306b4749
|
@ -38,17 +38,19 @@ in {
|
||||||
};
|
};
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
wireplumber.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;
|
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
|
# Set up Mopidy
|
||||||
services.mopidy = {
|
services.mopidy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue