Show HN: Nixorium – NixOS fleet management, in daily use in my school's labs (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (1)
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.
Replies (5)
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.
Replies (1)
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.
Replies (1)
Nix is orthogonal to k3s though. k3s is great for container orchestration, with features like zero-downtime rolling updates & rollbacks, a built-in ingress controller and load balancer, sophisticated health checking (liveness, readiness, startup) that integrates with the previous two features, automatic manifest-driven updates, fine-grained container-level firewall, first-class support for managing and automatically mounting configurations and secrets in containers, RBAC for granular permissions, and job scheduling.
Docker Compose supports almost none of that out of the box, and the features where there is some overlap, like config files and secrets, are more primitive and depend on host machine files rather than managed resources.
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 :)
[1]: https://debops.org/
[2]: https://github.com/debops/debops/