README

Configuration Examples

This directory stores example configuration files only. meson install ships them (renamed to *.json) into the build's sysconfdir/nextless — /etc/nextless for distro builds — and the runtime reads that same directory. Per-user overrides live in ~/.config/nextless/.

Boundary

  • Track *.json.example in Git.
  • Do not track *.json in this directory.
  • Real API keys, local paths, and user preferences belong in ~/.config/nextless/*.json (your copy wins) or the packaged defaults under /etc/nextless/*.json.
  • Runtime lookup order is ~/.config/nextless/*.json first, then the packaged defaults installed by the same build (compiled in as NEXTLESS_PACKAGED_CONFIG_DIR); missing user files are copied from there on first read.
  • .gitignore ignores config/*.json to reduce the chance of committing real credentials.

Initial Setup

mkdir -p ~/.config/nextless
cp config/doubao.json.example ~/.config/nextless/doubao.json
cp config/qwen.json.example ~/.config/nextless/qwen.json
cp config/audio.json.example ~/.config/nextless/audio.json
cp config/nextless.json.example ~/.config/nextless/nextless.json
cp config/advanced.json.example ~/.config/nextless/advanced.json

After copying, edit the files under ~/.config/nextless/. Do not put real keys into files under this repository.

Files

Example Runtime file Purpose
doubao.json.example ~/.config/nextless/doubao.json Doubao API key and resource ID
qwen.json.example ~/.config/nextless/qwen.json Alibaba DashScope API key
audio.json.example ~/.config/nextless/audio.json Active denoiser: none, speexdsp, or deepfilter
nextless.json.example ~/.config/nextless/nextless.json Activation delay, notifications, CapsLock debounce
advanced.json.example ~/.config/nextless/advanced.json Optional model paths, timeouts, thread counts, and audio tuning

Notes on advanced.json:

  • Omitting num_threads follows the CPU (capped at 12) — do not ship the old hardcoded 30.
  • Omitting model_dir / bin_path uses the built-in locations under ~/.local/share/nextless/ that the README download steps create; the example keeps those same values so a copied file never silently points somewhere else.

Update Rule

When adding a new runtime config key, update the relevant .json.example, this README, and the user-facing configuration section in README.md. When adding a whole new config file, also add it to the install_data(... rename: [...]) list in meson.build, or it will never be installed.