Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 2.13 KB

File metadata and controls

44 lines (33 loc) · 2.13 KB

Extras

extras/ holds reusable modules built on top of the public core. All extras are opt-in: import the module in your host config and set the enable option.

Shipped Extras

Path Enable / import What it adds Notes
extras/cass.nix Import + services.cassIndexer.enable = true Low-priority system timer that refreshes the CASS session index Runs as the dedicated agent user with CPU/memory throttling
extras/codex.nix services.codexAgent.enable = true Optional sandboxed codex wrapper Requires agentLauncher and nonoSandbox; defaults to the openai-api-key secret
extras/restic.nix services.resticStarter.enable = true Restic backups to a Backblaze B2 S3 endpoint Expects the secrets/template wiring from modules/secrets.nix
extras/home/ home-manager.users.<name> = import ../../extras/home; Home-manager profile for the agent user Installs git, gh, ssh, and direnv defaults

Home Profile

extras/home/default.nix is a default home-manager profile available for private overlays to import. It provides:

  • git with placeholder identity that private overlays should replace
  • GitHub CLI with auth left to runtime credentials
  • SSH client defaults with multiplexing enabled
  • direnv + nix-direnv
  • a clean place for private overlays to layer agentic-dev-base and project-specific config

Extending tsurf: Custom Agents

Public extras are not the only extension point. The advanced extension API is services.agentLauncher.agents.<name>, which powers custom wrappers on top of the generic launcher path. extras/codex.nix is a real-world example built on this same API.

Each definition can specify:

  • the package and command to run
  • the wrapper name to expose in PATH
  • the credential tuples the root-owned launcher may read
  • extra nono allow or deny entries
  • default CLI arguments
  • additional persisted files or directories under the agent home

See examples/private-overlay/modules/code-review.nix for a minimal scheduled-agent example built on the generic launcher.