blob: cf92179996fcdb8de941124699c12ccedaa89148 (
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
26
27
28
29
30
|
{
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;
};
environment = {
etc."bluetooth/input.conf".text = generators.toINI {} {
General = {
IdleTimeout = 15;
UserspaceHID = true;
};
};
};
};
}
|