build
Starts a persistent background NixOS or Home Manager closure compilation without activation and returns a job ID for polling status and new log output.
Instructions
Start a persistent background build of the system/HM closure, without activation. Returns job_id promptly. Poll build(job_id=...) for bounded live log tails and status: running, ok, failed, or interrupted. Pass the previous poll's log_offset to receive only new stderr. Jobs survive MCP disconnects and server restarts; repeated starts for the same running target reuse its job. On success returns store_path; successful output is a short tail with log_truncated and full local log_paths. on build failure includes failed_derivation{drv, log_tail} when available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | nixos | |
| job_id | No | ||
| flake_uri | No | ||
| log_offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||