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