Document: verify Nix options via nixos MCP before writing
This commit is contained in:
parent
c0ed58bcc2
commit
370b69bd5a
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ That means evaluation is **pure**: config can never read files outside the repo
|
||||||
|
|
||||||
## Code Evaluation
|
## Code Evaluation
|
||||||
|
|
||||||
|
Before writing or changing any NixOS / Home Manager option, verify it exists and
|
||||||
|
has the expected name and type using the `nixos` MCP server tools (`nix` /
|
||||||
|
`nix_versions`, configured in `.mcp.json`). Don't rely on memory for option or
|
||||||
|
package names — look them up first to avoid invented attributes that fail at eval.
|
||||||
|
|
||||||
Always validate Nix expressions with `nix eval` before committing. For example:
|
Always validate Nix expressions with `nix eval` before committing. For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue