From c2b6c8e6c00e03baef87aa06aed1a25045f6eb7d Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Fri, 1 May 2026 22:25:51 -0500 Subject: [PATCH] refactor: collapse alsa and wireplumber configuration into single blocks --- modules/nixos/hardware/audio/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/modules/nixos/hardware/audio/default.nix b/modules/nixos/hardware/audio/default.nix index 6f3082c..27b1bbe 100644 --- a/modules/nixos/hardware/audio/default.nix +++ b/modules/nixos/hardware/audio/default.nix @@ -23,10 +23,23 @@ in { jack.enable = true; - wireplumber.enable = true; + alsa = { + enable = true; + support32Bit = true; + }; - alsa.enable = true; - alsa.support32Bit = true; + wireplumber = { + enable = true; + extraConfig = { + "10-libcamera" = { + "wireplumber.profiles" = { + main = { + "monitor.libcamera" = "required"; + }; + }; + }; + }; + }; }; }; }