Files
cnix/system/modules/hardware/bluetooth/default.nix
2024-10-13 18:09:15 +02:00

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;
};
};
};
}