From e36bd73529043545d0d8180c000e0f45638b5d5b Mon Sep 17 00:00:00 2001 From: "christoph.hollizeck" Date: Wed, 27 Mar 2024 16:30:39 +0100 Subject: [PATCH] bluetooth is sadly not working again and I forgot how I fixed it last time --- modules/nixos/system/hardware/bluetooth/default.nix | 12 +++++++----- systems/x86_64-linux/yggdrasil/hardware.nix | 8 +++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/modules/nixos/system/hardware/bluetooth/default.nix b/modules/nixos/system/hardware/bluetooth/default.nix index c74723b..3b75599 100644 --- a/modules/nixos/system/hardware/bluetooth/default.nix +++ b/modules/nixos/system/hardware/bluetooth/default.nix @@ -17,12 +17,14 @@ in { hardware.bluetooth = { enable = true; powerOnBoot = true; + settings = { + General = { + Experimental = true; + KernelExperimental = true; + }; + }; }; - fileSystems."/var/lib/bluetooth" = { - device = "/persist/var/lib/bluetooth"; - options = ["bind" "noauto" "x-systemd.automount"]; - noCheck = true; - }; + # https://github.com/NixOS/nixpkgs/issues/170573 }; } diff --git a/systems/x86_64-linux/yggdrasil/hardware.nix b/systems/x86_64-linux/yggdrasil/hardware.nix index 98f60d7..ecec3d3 100644 --- a/systems/x86_64-linux/yggdrasil/hardware.nix +++ b/systems/x86_64-linux/yggdrasil/hardware.nix @@ -12,7 +12,7 @@ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"]; + boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod"]; boot.initrd.kernelModules = []; boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; @@ -27,6 +27,12 @@ fsType = "vfat"; }; + fileSystems."/var/lib/bluetooth" = { + device = "/persist/var/lib/bluetooth"; + options = ["bind" "noauto" "x-systemd.automount"]; + noCheck = true; + }; + swapDevices = []; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking