Manage NixOS server configs with Claude Code
The author uses Claude Code to maintain the NixOS config repo for their self-hosted machines, blocked from running nixos-rebuild switch and reviewing each change before applying it manually.
Done withClaude Code
- What they did
- The author keeps one config repo that defines all their NixOS machines, two refurbished 32GB Lenovo laptops used as self-hosting servers, and has Claude Code work on it. Claude is restricted from running nixos-rebuild switch. The author reviews each change and runs the switch manually.
- How it went
- The source gives no results or numbers for the Claude workflow itself. It only says the review-then-switch setup is how they manage the machines, which run services like Nextcloud, Vaultwarden and Jellyfin.
- Worth knowing
- Block nixos-rebuild switch for the agent so every change to a live machine gets human review before it is applied.
Try it yourself with Claude Code
Help me maintain the NixOS config repo at [path to repo] for my machines [machine names]. Make this change: [describe change, such as adding a service or updating a package]. You may edit files and run dry builds, but never run nixos-rebuild switch. Show me the full diff and a plain-language explanation so I can review and apply it myself.
Source: HN · Oct 9, 2026
Five of these in your inbox every morning
The best things people got an AI agent to do, each with the prompt to try it.
More like this
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Triage a founder's inbox with Claude Code and Gmail MCP
A team connected a Gmail MCP server so Claude Code reads the inbox, labels messages and drafts replies, plus calendar prep and reports.
Delegate web research from Claude Code to Comet
An MCP server lets Claude Code hand web navigation, login-walled pages and research to Comet while it keeps coding, then returns results.
- Claude
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Build and test a simple endpoint project with Devin
A reviewer had Devin set up a project, write code, install dependencies, test endpoints and add error handling in about 4 minutes on a simple task.
Build a booking and payment app for tattoo artists
A former programmer used Replit Agent over a weekend to build a booking app with calendar, Google OAuth, Stripe deposits and notifications, though time zones and UI needed back-and-forth.