Posted by zener79 8 hours ago
I need to work on finding a better level of abstraction. For example, changing my default Gnome keyboard shortcuts results in a huge CI test validating things like my Mikrotik provisioning automation, ZFS-backed impermanence, and whether or not my Mistral AI keys still work.
The fact that it can do all this is amazing but my use of LLMs have really turned it into a kind of beast.
Eg MAAS, Satellite for the older, commercially relevant versions.
It usually goes Netboot/PXE -> base/golden image for general config, -> some flavor off one-off customize (eg insert one user ssh keys), then boot and monitor until repeat.
I think golden image generation is an ugly problem, and a IaC/declarative process that NixOS provides is a good fix. A few things that are missing, imo:
1. non-privileged account management. gracefully providing, degrading, and escalating sudoers on a linux system is not so easy.
2. time-to-machine is slow; a reimage takes a while. A reasonable compromise is thin clients booting ephermeral VMs or containers, but perhaps not a good fix here.
3. Drift -- if you give users sudoer, config will drift. Reconciling it is not easy or obvious, especially if they remove your agent. Ansible is OK here.
4. setup: most people (and even some agents because of lack of feedback loop) suck at debugging network failures related to PXE, and stuff like dhcp relay is a PITA to setup. It gets worse if your machines do not have IPMI/OOB management. Cheap KVM would be a nice integration.
In early 2026 I moved the labs to NixOS. Before that I used Clonezilla and Ansible plus a lot of manual steps. Over the following months that setup slowly turned into Nixorium, and we have used it every school day since.
My two big problems were drift, and that the clients had not internet until someone logged in to the school proxy. So Nixorium is much more narrow than MAAS: one lab, one controller, normal PCs, only the controller needs internet.
Regarding your points:
1. Fixed accounts: admin with sudo, teacher and student without. Users are declarative and root on the clients only accepts the controller key. No escalation on purpose, students never need root.
2. No reimage for updates. The controller builds once and serves a local cache, every PC download only what changed (no internet needed on the clients), usually without reboot, with rollback to the previous generation. After a big NixOS update it's still some GB per PC tho.
3. Drift: no root for students, declarative system, student home reset at every boot. No agent to remove, the controller push over SSH.
4. Agree, PXE is the painful part. The school DHCP keeps giving addresses, the controller only answers the network boot (dnsmasq proxy mode) during an install session, so no relay. If PXE is not possible there is a USB install over SSH. No IPMI on school PCs, we use Wake-on-LAN. A cheap KVM for the boot screen is a nice idea.
Now, I _could_ have gone with NixOS instead of Debian as the host. Actually, that probably would have been better. But I would still make it a NixOS system that manages a bunch of docker-compose folders.
For my (first) homelab, I had two identical minipcs. I installed Debian and NixOS on one each. I maintained both in parallel as some sort of crappy A/B test and I found NixOS was super easy to manage, and ended up dropping debian in favour of the nix config.
I currently run everything through it (except my video game servers). https://github.com/milotek/nixeljam/tree/personal/modules/ho...
Hell, if you wanna be lazy, you could ask AI to port your setup to a Nix config for you :)
I'd submit k3s (Kubernetes distribution in a 100 MB binary) as beating that. The only real downside is that if you're not already familiar with Kubernetes, there's a learning curve. But it gives you much more capability than Docker Compose, including the ability to seamlessly expand beyond a single node.
Shipping a bunch of immutable store paths packed into container blobs is a very natural fit for Nix, and Nix gives you a great incremental build/storage story if you have a monorepo or something monorepo-shaped that is too expensive to just do from scratch every time. And of course, having that interface plugs you into the whole modern ecosystem of k8s, devcontainer, agentic whatever.
Like I say, I like NixOS on metal too, but Nix containers are a great way to get a bunch of the benefits.
The main thing is the management of the lab: all the PCs are installed and updated from one NixOS configuration on the controller, so every PC is the same, you can add software or change the desktop once for all even if they can not go to internet (or if they go only after a login to the school proxy), and go back if an update goes wrong. It mainly replaces the Clonezilla images and the manual work, not the remote control.
If I understand well it's a different approach: an agent on every desktop that enforce policies on a normal distro, and fix the drift when it happens.
With NixOS I don't manage single setting, the whole system is built from one description, so there is no agent and basically zero drift . Also for a school lab I need some different things, like clients with no internet, home reset at every boot and the classroom view for the teacher.
I had the same thing with.. ZX? YAMAHA? in 1993
sigh