nixos/modules/devices/bluetooth.nix
2023-07-07 22:46:47 +03:00

25 lines
462 B
Nix

{ config, pkgs, lib, ...}:
with lib;
let cfg = config.modules.devices.bluetooth;
in {
options.modules.devices.bluetooth = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
settings = {
General = {
ControllerMode = "bredr";
};
};
powerOnBoot = false;
};
services.blueman.enable = true;
};
}