diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index f9a5df6..b714bd6 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -77,6 +77,21 @@ "bluez5.roles" = ["a2dp_sink" "a2dp_source"]; }; }; + # https://wiki.archlinux.org/title/Bluetooth_headset#Connecting_works,_sound_plays_fine_until_headphones_become_idle,_then_stutters + wireplumber.extraConfig.disableSuspend = { + "monitor.bluez.rules" = { + matches = [ + { + "node.name" = "bluez_output.*"; + } + ]; + }; + actions = { + update-props = { + "session.suspend-timeout-seconds" = 0; + }; + }; + }; }; services.libinput.enable = true;