nixos/modules/hardware/bluetooth/default.nix

24 lines
430 B
Nix
Raw Normal View History

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