Manage NixOS server configs
Someone keeps their self-hosted NixOS machines in a config repo with Claude Code, but blocks nixos-rebuild switch and applies each reviewed diff by hand.
- Agent or tool
- Claude Code
- Topic
- DevOps & Infra
- Reported on
- Hacker News
- Added
- 2026-10-15
Why it matters
Keeping servers and pipelines healthy is constant, detail-heavy work. Agents that can read logs and run routine fixes are a big help, as long as a person keeps an eye on what changes. It is one of 40 sightings filed under DevOps & Infra on Agent Sightings (number 33 by interest), and one of 164 involving Claude Code.
How you could try it
Here is a reusable prompt, written by us in our own words, that captures the task. Paste it into Claude Code or any similar agent and adjust the details to your situation.
In this NixOS config repo, propose the smallest change for my request, show the diff, and never run nixos-rebuild switch. I will apply approved changes myself.
Tip: Try it first on a staging system or with read-only credentials, and require approval for anything that changes production.
Source
Read the original first-hand account on Hacker News: https://news.ycombinator.com/item?id=50017667. Our summary is a paraphrase; details are in the source.