diff --git a/modules/sound/default.nix b/modules/sound/default.nix index 714b01f..043836d 100644 --- a/modules/sound/default.nix +++ b/modules/sound/default.nix @@ -21,7 +21,20 @@ in pulse.enable = true; alsa.enable = true; jack.enable = cfg.jack; - wireplumber.enable = true; + wireplumber = { + enable = true; + + configPackages = [ + (pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/99-libcamera.conf" '' + wireplumber.profiles = { + main = { + monitor.v4l2 = disabled + monitor.libcamera = optional + } + } + '') + ]; + }; }; };