blob: 76131bf35f8370443cd396d3294ece57cda5a0da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.nixfiles.modules.bluetooth;
in {
options.nixfiles.modules.bluetooth.enable =
mkEnableOption "Bluetooth support";
config = mkIf cfg.enable {
ark.directories = ["/var/lib/bluetooth"];
hardware.bluetooth = {
enable = true;
settings.General.FastConnectable = true;
input.General = {
IdleTimeout = 15;
UserspaceHID = true;
};
};
};
}
|