nix-config/modules/hardware/bluetooth.nix
2025-02-28 00:04:49 +01:00

21 lines
342 B
Nix

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