Hacker News new | ask | show | jobs
by tstrimple 234 days ago
Just started a Claude Code experiment this week. I'm building a new NAS but instead of using an off the shelf appropriate distro like TrueNAS I just installed NixOS and I'm having Claude Code fully manage the entire operating system. It's going pretty well so far. Initially it would reach for tools like dig that weren't available on the install but after a "# memorize We're on NixOS, you need to try to do things the NixOS way first. Including temporarily installing tools via nix-shell to run individual commands." those issues went away and it's doing NixOS things.

From a clean NixOS command line install, we've got containers and vms handled. Reverse proxy with cloudflare tunnels with all endpoints automatically getting and renewing SSL certs. All the *arr stack tools and other homelab stuff you'd expect. Split horizon DNS with unbound and pihole running internally. All of my configurations backed up in github. I didn't even create the cloudflare tunnels or the github repos. I had claude code handle that via API and cli tools. The last piece I'm waiting on to tie it all together are my actual data drives which should be here tomorrow.

Is this a smart thing to do? Absolutely not. Tons of things could go wrong. But NixOS is fairly resilient and rollbacks are easy. I don't actually have anything running on the NAS in use yet and I've got my synology limping along until I finish building this replacement. It's still an open question whether I'll use Claude Code like this to manage the NAS once I've migrated my data and my family has switched over. But I've had a very good experience so far.