My NixOS configuration (mirror)

fixed broken bluetooth config

+40 -1
+27
hosts/thwomp/btusb.patch
··· 1 + From c71085bcea25ab5e46ee1ca93c30da6a0bb6bd72 Mon Sep 17 00:00:00 2001 2 + From: Matthew Hrehirchuk <49077192+matthew-hre@users.noreply.github.com> 3 + Date: Sun, 23 Feb 2025 16:35:59 -0700 4 + Subject: [PATCH] update btusb.c 5 + 6 + --- 7 + drivers/bluetooth/btusb.c | 6 ++++++ 8 + 1 file changed, 6 insertions(+) 9 + 10 + diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c 11 + index 90966dfbd2781f..ef07e54e6ac2df 100644 12 + --- a/drivers/bluetooth/btusb.c 13 + +++ b/drivers/bluetooth/btusb.c 14 + @@ -519,6 +519,12 @@ static const struct usb_device_id quirks_table[] = { 15 + BTUSB_WIDEBAND_SPEECH }, 16 + 17 + /* Realtek 8852BE Bluetooth devices */ 18 + + 19 + + /* stupid budget asus mobo... stupid stupid... */ 20 + + { USB_DEVICE(0x0489, 0xe112), .driver_info = BTUSB_REALTEK | 21 + + BTUSB_WIDEBAND_SPEECH }, 22 + + 23 + + 24 + { USB_DEVICE(0x0cb8, 0xc559), .driver_info = BTUSB_REALTEK | 25 + BTUSB_WIDEBAND_SPEECH }, 26 + { USB_DEVICE(0x0bda, 0x4853), .driver_info = BTUSB_REALTEK | 27 +
+10 -1
hosts/thwomp/configuration.nix
··· 52 52 53 53 hardware.bluetooth.settings.General.Experimental = "true"; 54 54 hardware.enableAllFirmware = true; 55 + hardware.firmware = [ 56 + pkgs.firmwareLinuxNonfree 57 + ]; 58 + 59 + boot.kernelPatches = [ 60 + { 61 + name = "btusb-patch"; 62 + patch = ./btusb.patch; 63 + } 64 + ]; 55 65 56 66 hardware.graphics.enable = true; 57 - hardware.xone.enable = true; 58 67 59 68 environment.sessionVariables = { 60 69 NIXOS_OZONE_WL = "1";
+3
system/hardware/bluetooth.nix
··· 2 2 hardware.bluetooth = { 3 3 enable = true; 4 4 powerOnBoot = true; 5 + settings = { 6 + Policy.AutoEnable = true; 7 + }; 5 8 }; 6 9 }