How to disable bluetooth

In the light of Matthew Garrett (@mjg59): "Intel just disclosed a bunch of Linux Bluetooth vulnerabilities (https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00435.html), but: 1) Despite claiming the fixes are in 5.9, they aren't 2) Distributions weren't notified so didn't have backported patches ready to release" | nitter, it might be good to disable bluetooth if you’re not using it.

I disabled hardware.bluetooth.enable in /etc/nixos/configuration.nix - which I think is sufficient, though I still see various bluetooth-related modules in lsmod. Is there an easy way to avoid loading those (rather than just rmmod’ing by hand)?

1 Like

from here(reddit link)
you should be able to boot.blacklistedKernelModules = ["bluetooth"];
to disable the module.

But I would think your solution would be enough.

An alternative would be if your BIOS lets you turn the bluetooth radio off, completely.

Thanks for the pointer!

Interestingly I had to boot.blacklistedKernelModules = [ "btusb" ];, otherwise it’d just load bluetooth anyway (I guess because it is a dependency of btusb).