nixos/modules/devices/bluetooth.nix

26 lines
462 B
Nix
Raw Normal View History

2023-07-07 21:38:41 +04:00
{ config, pkgs, lib, ...}:
with lib;
let cfg = config.modules.devices.bluetooth;
in {
options.modules.devices.bluetooth = {
2023-07-07 23:46:47 +04:00
enable = mkOption {
type = types.bool;
default = false;
};
2023-07-07 21:38:41 +04:00
};
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
settings = {
General = {
ControllerMode = "bredr";
};
};
powerOnBoot = false;
};
services.blueman.enable = true;
};
}