check
Validate NixOS or Home Manager configurations before switching via lint, dry-build, or dry-activate (NixOS); returns findings and build plans.
Instructions
Validation ladder for the configuration, fast to slow: level='lint' (statix+deadnix; returns a structured findings list), 'dry-build' (evaluate and plan the closure build), 'dry-activate' (NixOS only, shows what activation would change). Successful output is a short tail with log_truncated and full local log_paths; failures retain their capped diagnostics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"level": "<level>"
},
"name": "check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | nixos | |
| level | Yes | ||
| flake_uri | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||