18 lines
311 B
Nix
18 lines
311 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.module.desktop.bluetooth;
|
|
in {
|
|
options.module.desktop.bluetooth.enable = lib.mkEnableOption "the bluetooth support.";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.blueman.enable = true;
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
};
|
|
};
|
|
}
|