The NixOS change waits for a manual switch
wraptile lets Claude Code edit the NixOS config for his machines. He blocks the agent from running nixos-rebuild switch, and he switches himself after review.
Done with Claude CodeEasy
What was done
On 09 October 2026 wraptile writes that the machines run NixOS, with one config repo that sets up all of them. Claude Code is used on that repo. He refuses to let Claude run nixos-rebuild switch. He reads each change before he switches manually.
How it went
The rule is that he switches himself. The comment does not say how many changes he has accepted.
Worth knowing
He does not describe a specific commit, or what happened the last time a switch failed. Secrets in the repo are not discussed.
How to do it
- Ask Claude Code to edit [file] in the NixOS repo for [machine].
- Read the diff before anything is activated.
- Run nixos-rebuild switch yourself if the change is right.
Try it with Claude Code
Edit [file] for [machine] in the NixOS config. Show the diff. Do not run nixos-rebuild switch and do not deploy until I say yes.
Replace text in brackets with your own.
Done when. The diff has been read, and switch has not been run unless you ran it yourself.
Safety rule. Claude Code is not allowed to run nixos-rebuild switch. You read the diff and switch yourself.
Read the original
Read the original · comment by wraptile on Hacker News ·