From a8ee47c46f413ced8ff85a50211b49b56ea05e63 Mon Sep 17 00:00:00 2001 From: Boom-Hacker Date: Sun, 2 Nov 2025 21:02:17 +0800 Subject: [PATCH] fixed wireplumber --- acer/chromebook/cp713-1wn/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/acer/chromebook/cp713-1wn/default.nix b/acer/chromebook/cp713-1wn/default.nix index 559d0c94..a63c020f 100644 --- a/acer/chromebook/cp713-1wn/default.nix +++ b/acer/chromebook/cp713-1wn/default.nix @@ -14,5 +14,22 @@ in { options snd-soc-avs obsolete_card_names=1 ''; environment.sessionVariables.ALSA_CONFIG_UCM2 = lib.mkDefault "${alsa-ucm-conf-cros}/share/alsa/ucm2"; + + services.pipewire.wireplumber.extraConfig."51-increase-headroom" = { + "monitor.alsa.rules" = [ + { + matches = [ + { + "node.name" = "~alsa_output.*"; + } + ]; + actions = { + "update-props" = { + "api.alsa.headroom" = 4096; + }; + }; + } + ]; +}; }