nix-dotfiles/modules/hardware/bluetooth.nix
2026-04-22 23:21:23 -07:00

27 lines
650 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.modules.hardware.bluetooth;
in {
options.modules.hardware.bluetooth = {
enable = mkEnableOption "Enable bluetooth, a short-range communication technology";
powerOnBoot = mkEnableOption {
default = !config.modules.core.laptop;
description = "Power up bluetooth devices on boot";
};
};
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = cfg.powerOnBoot;
hardware.bluetooth.settings = {
General = {
Experimental = true;
};
};
# frontend
services.blueman.enable = true;
};
}