Fix for bluetooth headphones, switch between headset and hifi

This commit is contained in:
Nate Anderson 2025-01-07 13:20:27 -07:00
parent f8812c081b
commit 6d46c769fd

View File

@ -140,12 +140,18 @@ in
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true; wireplumber.enable = true;
wireplumber.extraConfig.bluetoothEnhancements = { wireplumber.extraConfig = {
"wireplumber.settings" = {
bluetooth.autoswitch-to-headset-profile = false;
};
bluetoothEnhancements = {
"monitor.bluez.properties" = { "monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true; "bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true; "bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true; "bluez5.enable-hw-volume" = true;
"bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" "a2dp_sink" "a2dp_source" ]; # Default roles: https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/bluetooth.html#monitor-properties
"bluez5.roles" = [ "a2dp_sink" "a2dp_source" "bap_sink" "bap_source" "hfp_hf" "hfp_ag" ];
};
}; };
}; };
}; };
@ -165,9 +171,20 @@ in
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true"; # Don't create default ~/Sync folder systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true"; # Don't create default ~/Sync folder
services.usbmuxd.enable = true; services.usbmuxd.enable = true;
hardware.bluetooth.enable = true; # enables support for Bluetooth hardware.bluetooth = {
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot enable = true;
powerOnBoot = true; # powers up the default Bluetooth controller on boot
settings = {
General = {
Name = "Nate-Vasion";
ControlleMode = "dual";
FastConnectable = "true";
Experimental = "true";
};
Policy = { AutoEnable = "true"; };
LE = { EnableAdvMonInterleaveScan = "true"; };
};
};
# #
# Nvidia Setup # Nvidia Setup
# #