21 lines
365 B
Nix
21 lines
365 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.systemModules.hardware.bluetooth;
|
|
in {
|
|
options = {
|
|
systemModules.hardware.bluetooth.enable = mkEnableOption "Enables bluetooth";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
hardware = {
|
|
bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = false;
|
|
};
|
|
};
|
|
};
|
|
}
|