Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Nixorium – NixOS fleet management, in daily use in my school's labs (opens external site)

146 points by zener79 1 day ago github.com 52 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (10)

  1. 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.

    Replies (4)
    1. Great use-case (and showcase) of why NixOS is powerful
    2. 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.
      Replies (1)
      1. 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!
    3. nice, glad it is working well for you. no sudo for students makes things easier. Can always give them VMs or LXCs on the machines for elevated build environments!
    4. > 2. No reimage for updates.

      Uh, so when a student gains root from a local exploit - they are free to install a persistent backdoor - at bios/UEFI or grub/kernel level?

      Replies (2)
      1. Fair point, a NixOS update doesn't clean a machine where someone already got root, never claimed that. Students have no sudo and their home is reset at every boot, but a local root exploit is still a local root exploit.

        Also reimaging in the old way doesn't save you from a UEFI implant either. We were reimaging maybe twice a year , so if a PC was compromised it could stay like that for months anyway. Now updates are cheap and kernel fixes come in days, not next summer.

        If I suspect something on a PC I can just reinstall it from the network in few minutes.

        Replies (1)
        1. Not sure why, but this reply was flagged.
      2. How would "reimaging" even work when somebody else owns the UEFI?

        Many school PCs fall in the "attacker has physical access" category, eg one can just plug in a USB stick or a physical keylogger. It is near impossible to protect against that comprehensively.

        Replies (1)
        1. It probably be wouldn't.

          I pointed it out, because I seem to recall workstations at the computer labs frequently being hacked - and was wondering if that was considered or not.

          Wasn't hoping for a magic fix.