Files
cnix/modules/nixos/hardware/bluetooth/default.nix
2024-10-23 20:11:01 +02:00

21 lines
349 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.nixos.hardware.bluetooth;
in {
options = {
nixos.hardware.bluetooth.enable = mkEnableOption "Enables bluetooth";
};
config = mkIf cfg.enable {
hardware = {
bluetooth = {
enable = true;
powerOnBoot = false;
};
};
};
}