diff --git a/system/sound.nix b/system/sound.nix index 7d06248..3a67246 100644 --- a/system/sound.nix +++ b/system/sound.nix @@ -9,24 +9,14 @@ alsa.support32Bit = true; pulse.enable = true; jack.enable = true; - media-session.config.bluez-monitor.rules = [ - { - matches = [{ "device.name" = "~bluez_card.*"; }]; - actions = { - "update-props" = { - "bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ]; - "bluez5.msbc-support" = true; - "bluez5.sbc-xq-support" = true; - }; - }; - } - { - matches = [ - { "node.name" = "~bluez_input.*"; } - { "node.name" = "~bluez_output.*"; } - ]; - actions = { "node.pause-on-idle" = false; }; - } - ]; }; + + environment.etc."wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' + bluez_monitor.properties = { + ["bluez5.enable-sbc-xq"] = true, + ["bluez5.enable-msbc"] = true, + ["bluez5.enable-hw-volume"] = true, + ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" + } + ''; }