nixos/modules/hardware/bluetooth/default.nix
2024-08-01 16:24:09 +04:00

22 lines
428 B
Nix

{ options, config, lib, pkgs, ...}:
let
cfg = config.modules.hardware.bluetooth;
in
{
options.modules.hardware.bluetooth = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
settings = {
General = {
ControllerMode = "bredr";
};
};
powerOnBoot = false;
};
services.blueman.enable = true;
};
}