aboutsummaryrefslogtreecommitdiff
path: root/modules/nixos/hardware/bluetooth/default.nix
blob: 1bb9014dc9ffb5c72d4b6f73d745be243171e215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, ... }:
let
  inherit (lib) mkEnableOption mkIf;
  cfg = config.nx.hardware.bluetooth;
in
{
  options.nx.hardware.bluetooth.enable = mkEnableOption "Bluetooth support";

  config = mkIf cfg.enable {
    hardware.bluetooth = {
      enable = true;
      powerOnBoot = true;
      settings = {
        General = {
          Experimental = true;
          FastConnectable = true;
        };
        Policy = {
          AutoEnable = true;
        };
      };
    };
  };
}