diff --git a/modules/audio.nix b/modules/audio.nix index e3729b7..870bf6b 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -18,8 +18,21 @@ in { pulse.enable = true; jack.enable = true; media-session.enable = true; - config.pipewire-pulse."context.modules"."libpipewire-module-protocol-pulse"."args"."server.address" = - [ "unix:native" "tcp:4713" ]; + config.pipewire-pulse."context.modules" = [ + { + "args" = { }; + "flags" = [ "ifexists" "nofail" ]; + "name" = "libpipewire-module-rtkit"; + } + { "name" = "libpipewire-module-protocol-native"; } + { "name" = "libpipewire-module-client-node"; } + { "name" = "libpipewire-module-adapter"; } + { "name" = "libpipewire-module-metadata"; } + { + "args" = { "server.address" = [ "unix:native" "tcp:4713" ]; }; + "name" = "libpipewire-module-protocol-pulse"; + } + ]; }; security.rtkit.enable = true;