summaryrefslogtreecommitdiff
path: root/sys/hardware/bluetooth.nix
blob: 0d537508dbefb73fa0996509d3c8bf0003a619e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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;
    };
  };
}