nixos/modules/hardware/bluetooth/default.nix

23 lines
428 B
Nix
Raw Normal View History

2023-07-08 21:18:57 +04:00
{ options, config, lib, pkgs, ...}:
let
cfg = config.modules.hardware.bluetooth;
in
{
options.modules.hardware.bluetooth = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-08 21:18:57 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-07-08 21:18:57 +04:00
hardware.bluetooth = {
enable = true;
settings = {
General = {
ControllerMode = "bredr";
};
};
powerOnBoot = false;
};
services.blueman.enable = true;
};
}