Files
2025-08-29 15:25:40 +02:00

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