Loading extra PulseAudio modules automatically when using Pipewire

I’m setting up Mopidy on my system and don’t have any sound until I run “pactl load-module module-native-protocol-tcp auth-ip-acl=”. According to the docs, if using PulseAudio you can load this automatically with the hardware.pulseaudio.extraConfig option. This doesn’t work for me however, because I’m running Pipewire. How can I enable this automatically when using Pipewire?

1 Like

In my case sound doesn’t switch to the new sink when it is connected. For pulseaudio there is a module module-switch-on-connect, it is supported by pipewire-pulse. Probably this PR may allow adding PA modules (merged in master).

My config is

services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;