Not really an answer to your question, but I recommend using Pipewire with Pulseaudio emulation.
{
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}
I do not recommend using the Jack emulation (services.pipewire.jack.enable = true
) at this point because it uses LD_LIBRARY_PATH
which breaks some applications (Evolution, epiphany: Webkitgtk bubblewrapper crashes when LD_LIBRARY path points into /run/current-system/** (the case on a pipewire system with jack emulation) · Issue #110468 · NixOS/nixpkgs · GitHub).