I am considering to migrate from pulseaudio to pipewire. The same thing is actually being done by most major distros. I would also like to contribute a little section to the community wiki documenting this, but I don’t fully understand what is the minimal set of options required?
ALSA can be activated with sound.enable. Currently, I have hardware.pulseaudio.enable set to true, and that is sufficient for Firefox or any other application to start the pulseaudio daemon, which also initiates the rtkit daemon. Everything works fine.
I haven’t found a minimal set of options to setup pipewire using services.pipewire.audio.enable. All setups I read online or that worked for me were a bit convoluted. Perhaps there is not a simple way to do this.
Setting services.pipewire.enable worked for me. (but I use a DE which might have enabled it) To enable PulseAudio emulation, set services.pipewire.pulse.enable.