summaryrefslogtreecommitdiff
path: root/sys/hardware/bluetooth.nix
blob: 63e3f0c80fa39d829f0bf6af1598d134e60be7de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.local.hardware.bluetooth;
in {
  options.local.hardware.bluetooth = {
    enable = mkEnableOption "bluetooth services";
  };

  config = mkIf cfg.enable {
    hardware.bluetooth = {
      enable = true;
      powerOnBoot = mkDefault false;
    };
  };
}