chore(omp): manage config via dotfiles templates

Merged
SH
7mo ago
+38-0

Add dotfiles-managed OMP config under config/omp and wire it into the existing Nix config module list.

This keeps only ~/.omp/agent/config.yml under dotfiles control while leaving OMP runtime state such as databases and session files untouched. The Home Manager module uses copy semantics instead of symlinks so the tracked config behaves like other mutable CLI configs in this repo.

The OMP config also follows the existing models.json template convention by introducing config/omp/config.tpl.yml and adding it to scripts/llm-update.sh. The generated config keeps the default role on codex/GPT.

Additional context:

  • only the tracked config file is managed
  • runtime files under ~/.omp/agent remain unmanaged
  • config/default.nix now imports ./omp

Summary by cubic

Manage omp config via dotfiles using a Home Manager activation step that copies the tracked config to ~/.omp/agent/config.yml without touching runtime state. Adds a template wired to scripts/llm-update.sh for automatic regeneration.

  • New Features
    • Import ./omp in config/default.nix.
    • Copy config/omp/config.yml to ~/.omp/agent/config.yml on activation (no symlink); leave runtime files unmanaged; chmod 644.
    • Add config/omp/config.tpl.yml and map it in scripts/llm-update.sh; template keeps default role on codex/__GPT__.
    • Set doubleEscapeAction: none.