Files
nix/modules/bluetooth/default.nix

25 lines
424 B
Nix

{ lib, config, ... }:
let
cfg = config.bluetooth;
in
{
options.bluetooth.enable = lib.mkEnableOption "bluetooth";
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = true;
FastConnectable = true;
};
Policy = {
AutoEnable = true;
};
};
};
};
}