From 34e1e82f4fd6f425a88bf91a7302bae2c9b7ed33 Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 1 Dec 2022 00:35:00 +0100 Subject: [PATCH] [Desktop] Add wireplumber config for Bluetooth devices --- desktop.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/desktop.nix b/desktop.nix index f043aab..1fc1dd4 100644 --- a/desktop.nix +++ b/desktop.nix @@ -114,6 +114,16 @@ in { ]; }; }; + 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 ]" + } + ''; + }; security.rtkit.enable = true; # Real-time support for pipewire security.polkit.enable = true; # Better interactive privilege prompts