{ config, lib, ... }: with lib; let cfg = config.nixfiles.modules.bluetooth; in { options.nixfiles.modules.bluetooth.enable = mkEnableOption "Bluetooth support"; config = mkIf cfg.enable { ark.directories = [ "/var/lib/bluetooth" ]; hardware.bluetooth = { enable = true; settings.General.FastConnectable = true; input.General = { IdleTimeout = 15; UserspaceHID = true; }; }; }; }