From 6663ea8286e1b3059fcd3217c297df43913245d7 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 30 Apr 2025 11:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=A3=B0=E9=9F=B3=E4=BC=91?= =?UTF-8?q?=E7=9C=A0=EF=BC=8C=E9=81=BF=E5=85=8D=E6=92=AD=E6=94=BE=E5=90=8E?= =?UTF-8?q?n=E7=A7=92=E6=89=8D=E5=87=BA=E7=8E=B0=E5=A3=B0=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/nixos/audio.nix | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/modules/nixos/audio.nix b/modules/nixos/audio.nix index 9141e14..dd735f0 100644 --- a/modules/nixos/audio.nix +++ b/modules/nixos/audio.nix @@ -8,14 +8,34 @@ # If you want to use JACK applications, uncomment this #jack.enable = true; - wireplumber.extraConfig.bluetoothEnhancements = { - "monitor.bluez.properties" = { - "bluez5.enable-sbc-xq" = true; - "bluez5.enable-msbc" = true; - "bluez5.enable-hw-volume" = true; - "bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ]; + wireplumber.extraConfig = { + bluetoothEnhancements = { + "monitor.bluez.properties" = { + "bluez5.enable-sbc-xq" = true; + "bluez5.enable-msbc" = true; + "bluez5.enable-hw-volume" = true; + "bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ]; + }; + }; + extraConfig."99-disable-suspend" = { + "monitor.alsa.rules" = [ + { + matches = [ + { + "node.name" = "alsa_output.usb-ASUSTeK_Xonar_SoundCard-00.iec958-stereo"; + } + ]; + actions = { + update-props = { + "session.suspend-timeout-seconds" = 0; + }; + }; + } + ]; }; }; + + }; };