How to disable bluetooth

In the light of https://nitter.net/mjg59/status/1316484882877435904, 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)?

2 Likes

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).

1 Like