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