From cf36cb0a09539be0ec065c0b8e5b9abd220dfc4c Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 17 Dec 2024 12:56:14 +0100 Subject: [PATCH] pipewire: Use libcamera instead of v4l2 --- modules/sound/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 + } + } + '') + ]; + }; }; };