From e9068a7bba9546338890e0c0833cc4dedcaa7ca8 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Wed, 3 Apr 2024 02:42:43 +0200 Subject: [PATCH] Added bluetooth --- configuration.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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;