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

reply
If you want Debian with a NixOS "flavor", you can check out DebOps[1], a project I work on for more than a decade, started on Debian Wheezy. Based on Ansible and some custom Python execution scripts. I use it at work to manage data centers. Currently slowly adapting it for use with an LLM agent harness via an MCP server with custom clients for operator access to control agent job queues, ticketing system and other things. All Open Source and developed on GitHub[2] with extensive documentation.

[1]: https://debops.org/

[2]: https://github.com/debops/debops/

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

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

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

reply
Agreed. We can't use it work yet, mainly because the teams aren't familiar. I'm planning to introduce it in some of our ML workflows, since that team doesn't care about the infrastructure as long as it works.

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.

reply