3
0
Fork 0
forked from mirrors/nixpkgs

nixos/pipewire: enable sound on alsa support

Otherwise sound.extraConfig has no effect.
This commit is contained in:
Gabriel Ebner 2020-11-29 15:08:38 +01:00
parent 6850681fa2
commit 53029a15cc

View file

@ -79,6 +79,7 @@ in {
services.udev.packages = [ pkgs.pipewire ];
# If any paths are updated here they must also be updated in the package test.
sound.enable = mkIf cfg.alsa.enable true;
sound.extraConfig = mkIf cfg.alsa.enable ''
pcm_type.pipewire {
libs.native = ${pkgs.pipewire.lib}/lib/alsa-lib/libasound_module_pcm_pipewire.so ;