Qutebrowser audio on Nix/Ubuntu system

I’ve installed qutebrowser via home-manager on my ubuntu machine. Everything is working so far, except audio, which somehow isn’t “connected” with Pulseaudio. When playing audio with the browser, I get the following message:

ALSA lib conf.c:3725:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so (/nix/store/f7k0y5zdifzpq3gcv98vm303kmby38p1-alsa-lib-1.2.4/lib/alsa-lib/libasound_module_conf_pulse.so: cannot open shared object file: No such file or directory)
ALSA lib control.c:1542:(snd_ctl_open_noupdate) Invalid CTL hw:0

I could open an issue in the nixpkgs repository maybe, but I was wondering if I might fix this using a more general method? Is there a wrapPulseaudio command or something for these kinds of errors, maybe?

I have solved this issue myself by starting qutebrowser as follows:

ALSA_PLUGIN_DIR=$(nix-build -A alsaPlugins '<nixpkgs>')/lib/alsa-lib qutebrowser

Which is a workaround, of course, but I don’t know how to fix this properly.