nix-config/modules/hardware/bluetooth.nix

18 lines
298 B
Nix

{
lib,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.hardware.bluetooth;
in {
options = {
horseman.hardware.bluetooth = {
enable = mkEnableOption "Bluetooth";
};
};
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
};
}