nixcfg/hwModules/common/bluetooth/default.nix

23 lines
413 B
Nix

{
lib,
pkgs,
...
}: {
hardware = {
bluetooth.enable = true;
pulseaudio = {
enable = lib.mkForce false;
package = pkgs.pulseaudioFull; # Use extra Bluetooth codecs like aptX
extraConfig = ''
load-module module-bluetooth-discover
load-module module-bluetooth-policy
load-module module-switch-on-connect
'';
support32Bit = true;
};
};
}