My homelab
I’ve run a homelab for more than eight years. For most of that it lived in my own server rack, full-size servers and all, with the noise and the power bill that come with them. A lot of what I know about infrastructure I learned by breaking something in there first.
It also stopped being a test environment a long time ago. I use it for a lot of my day-to-day work, and it holds my documentation, my password manager and most of how I organise my life.
Smaller
The rack is gone. Everything now runs on six Lenovo ThinkCentre M720q’s, split into two Proxmox clusters in two different places. If one site loses power or its connection, the other just keeps going. DNS, DHCP and identity run at both.
Going small changed how I build things far more than the hardware itself did. There’s no spare capacity to throw at a problem anymore, so a VM has to be worth its RAM. And a node has to be something I can rebuild from the repository, not from memory.
One repository
The whole lab lives in one repository. One YAML file lists the sites, networks, nodes and machines, and everything else reads from that:
- OpenTofu creates the VMs, DNS records and tunnels
- Ansible sets up the Proxmox hosts and the firewalls
- NixOS defines every guest, from one flake
- Forgejo Actions builds what a change touches, deploys what’s different, checks for drift every day and does a restore test once a month
Nothing changes unless it’s merged into main. If a machine dies, its replacement comes from there too.
Backups
Backups go to a backup server on site, then off site, and a third copy sits at a friend’s place. The monthly restore test is the part I care about most. I’d much rather find out a backup is broken on a quiet Sunday than on the day I actually need it.
Getting in
Nothing in the lab has a port open to the internet. Public services go out through a tunnel I host myself, and everything else is on a tailnet. The binary cache is a good example of how that works out: how CI pushes to my Attic cache over Tailscale.