Files
dotfiles/modules/system/hardware/bluetooth.nix
T
2026-05-30 19:03:33 +09:00

27 lines
440 B
Nix

{
lib,
config,
...
}:
let
cfg = config.my.system.hardware.bluetooth;
in
{
options.my.system.hardware.bluetooth = {
enable = lib.mkEnableOption "Bluetooth support";
};
config = lib.mkIf cfg.enable {
hardware = {
bluetooth.enable = true;
bluetooth.powerOnBoot = true;
};
services = {
bluetooth.enable = true;
bluetooth.startWhenNeeded = true;
blueman.enable = true;
};
};
}