Added bluetooth

This commit is contained in:
vanten-s 2024-04-03 02:42:43 +02:00
parent ee6bccf11d
commit e9068a7bba
Signed by: vanten-s
GPG key ID: DE3060396884D3F2

View file

@ -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;