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; + }; + }; + } + ]; }; }; + + }; };