blob: f9d6478da7ba54b4d027265b4b195ef0723d2af4 (
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,
pkgs,
...
}:
let
cfg = config.nixos.bluetooth;
inherit (lib) types mkOption;
in
{
options.nixos.bluetooth = {
enable = mkOption {
type = types.bool;
default = true;
description = "enable bluetooth support";
};
};
config = lib.mkIf cfg.enable {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
};
}
|