Top
Best
New

Posted by zener79 8 hours ago

Show HN: Nixorium – NixOS fleet management, in daily use in my school's labs(github.com)
73 points | 29 comments
evanjrowley 4 hours ago|
I'm looking forward to the day when I can present my personal solution so other people might be able to leverage it. My NixOS fleet consists of roughly two dozen hosts and spanning a wide range of roles.

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.

Hasz 7 hours ago||
I have personally seen this idea be rebuilt about 10 different times, but I like it :)

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.

zener79 7 hours ago|
Thanks! I'm the author, I teach in an italian high school.

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.

jcmfernandes 5 hours ago|||
I believe you shared this on reddit this quite some time ago, a post I truly appreciated reading. I already even pointed people to it in other threads! I have a huge respect for anyone running IT in schools, so seeing you putting this much effort on building this setup... kudos.
zener79 5 hours ago||
Thank you, really appreciated :-) Yes, I posted it on Reddit some time ago. Knowing that people point others to it is the best feedback I can get!
pmarreck 6 hours ago|||
Great use-case (and showcase) of why NixOS is powerful
dpz 7 hours ago||
I adopted Nixos this year for my day to day driver and absolutely love it. I don't have a use case for fleet management atm but curious how people are using it in scale in production environments. I'm planning to spend some time over Christmas migrating my home lab set up to it would be interested to see people's approaches
pkulak 6 hours ago|
I use NixOS for everything I can. Desktop, laptop, agent container, a couple servers that have a single purpose. But for my main "homelab"... it's Debian with docker, and a folder-per-project. It's just too easy that way. Yes, you can mostly wrap projects up into a nix derivation... and AI could probably brute force a solution to ANYTHING, but a docker-compose.yaml in a folder just can't be beat.

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.

milotek 4 hours ago|||
You should totally NixOS a try for it!

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 :)

chuckadams 5 hours ago||||
Oddly enough, I use NixOS for my least geeky "it just needs to run" box that I don't otherwise tinker with, namely my game machine running Steam. Because it was damn near idiotproof to set up, just had to look up one tweak to fix the mouse pointer size. By comparison, Steam has all kinds of bugs in Crossover on my Mac (but it runs Dwarf Fortress fine, and that's good enough).
dpz 5 hours ago||||
Literally just described my current homelab. Docker compose/debian is just such no nonsense and easy to manage, would probably swap back if becomes too much hassle. Just mostly doing it for a curiosity stand point to explore nix a bit more and what it could look like live in production
antonvs 6 hours ago|||
> a docker-compose.yaml in a folder just can't be beat.

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.

mikepurvis 5 hours ago||
NixOS is great on bare metal when you can do that, and you have the political and practical support. But if you don't, Nix is also a great way to build container images, especially with https://github.com/nlewo/nix2container

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.

stcg 5 hours ago||
A tool in the same space that's worth mentioning is DAWO-Sextant (https://codeberg.org/DAWO/DAWO-Sextant). It is still experimental but I use it to manage a small fleet of laptops and it works quite well
zener79 5 hours ago|
Thanks, I didn't know it, I'll have a look!
ericcumbee 5 hours ago||
That brings back high school. I think the name of the program was Altiris Visions or something like that. Where the Teacher could see our screens and even black out our screens.
LelouBil 5 hours ago||
I know my old IT school in France, EPITA, is also using nixos in the labs. Also using torrenting to propagate updates
sogoh 7 hours ago||
This software is a little bit like a remote control assistance software, but it support controlling massive PCs at sometime. Also, that is more like a supervisor, can connect to each others and exchange the information with others. However, I think these kind of software is quite common in market.
zener79 7 hours ago|
You are right, the classroom part is quite common, I used Veyon before for that. But it's only a small part of Nixorium.

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.

eniac111 7 hours ago||
And this is mine :) https://getbor.dev/
zener79 7 hours ago||
Thanks, didn't know it, looks nice.

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.

Imustaskforhelp 7 hours ago||
Hey, I wanted to star your repository and look at it but the github is showing 404 because I wanted to show my support and maybe as a means of bookmarking such projects when or if I might ever need such things but also because they are interesting things in my opinion. Hopefully, you fix this error and hope this helps!
eniac111 7 hours ago||
The GitHub api was changed recently. If you click on the "Github" button, not on the stars count, it will open :) Thanks for the interest and congrats to the author of Nixorium. It looks really nice!
elikoga 6 hours ago||
https://thymis.io/ is another NixOS fleet manager
justsomehnguy 4 hours ago|
sigh

I had the same thing with.. ZX? YAMAHA? in 1993

sigh

More comments...