diff --git a/configuration.nix b/configuration.nix index 90e1395..d7becc4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -117,7 +117,6 @@ in { python311Packages.pip python311Packages.pygobject3 libsForQt5.kamoso - blueman gcc pass vscode-langservers-extracted @@ -163,6 +162,21 @@ in { pulse.enable = true; }; + 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 ]" + } + ''; + }; + + hardware.bluetooth.enable = true; # enables support for Bluetooth + hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + services.blueman.enable = true; + services.pcscd.enable = true; services.locate = { enable = true;