I think the problem is that really using nix involves learning a new language. And it's a weird lazy functional language at that. So yeah, the Haskell folk adopt it readily enough, but everyone else has a high barrier to get over. The only people that do it are the ones that have really wrestled with the problem of dependencies and can see how well nix solves it.
I meet people that have all kinds of familiar issues with puppet, chef etc. We used to have those problems and we just don't have any more.
It's pretty neat, and once I get my current projects squared away, I want to spend some time with NixOS, and maybe even get involved. It's just such a nice idea, and doesn't make me feel queasy the way so many of the bolted on solutions do.
Nix is atomic.
entire OS?? I guess, the kernel is still imperative and not declarative.
I'm pretty excited about rust based operating system experiments, though it'll probably be 10+ years before we can start using them seriously in production (and operating system kernels have a lot of unpleasant stateful things to deal with, so likely will never be particularly pure no matter what language they're written in).
Anyway, Nix is cool stuff that I think is interesting and novel.
So, you're now managing "containers" instead of "packages". What's the difference in terms of making them reproduce-able and reliable? Very little (though there are big differences in how you deploy them and how they behave when deployed). You still need tools to manage the complexity of reliably building these containers (a "higher level of abstraction" that contains many more moving parts than a single package, generally speaking). They've built configuration management (etcd), and they use existing tools or custom tools for the "packaging" part of the equation (Docker or rkt). Even though they're calling it a "container", you're still building and deploying software...now only with less mature tools than the old ones we've been using for 20 years.
Someone has to build those containers, and someone has to use tools to do so reliably and predictably.
I'm saying that NixOS seems to provide better tools (for both configuration management and for packaging) than the current popular solutions. It surprises me that more people haven't embraced it for doing this stuff. I'm just saying I think NixOS would be an ideal candidate for the same spaces where people are using CoreOS and Docker or CoreOS and rkt.
As far as reliably building images, I believe you can use Nix to provision images. I don't see this as NixOS vs Docker, I believe they can be used in conjunction.
As far as the maturity, despite its age there is so much momentum behind docker right now. Also, NixOS is also not that old.
I totally understand the hesitation, but I think it's worth trying out.
We've been working on Docker support in our products lately, so it's on my mind, and the way that so many lessons that have been learned in the past couple decades of systems management are kinda thrown overboard in the Docker (and other containers) community. As above where there's a sort of belief that "containers" makes the problems package management solves irrelevant. Likewise, there's a lot of throwing security out the window; a tremendous level of trust is being given to container builders.
I could rant all day about stuff like this, and there's always the risk of turning into Grandpa Simpson. So, I'll stop ranting after a summary:
Containers are cool, but a lot of people are making a lot of mistakes in their use of containers. NixOS is cool, and might remedy some of the problems I see in the way people are using containers (while also solving a number of other problems of reliable deployments, not just with containers).
That said, I've not used either in production. But, Nix was the first time I've looked at a new package manager and thought, "OK, someone finally improved on RPM/yum or deb/apt." Most of the time, I look at new package managers and just find myself running down a list of all of the ways they've failed to even replicate the power/flexibility/reliability of those now-ancient package managers, and usually without any really good reason. It's a cool side effect of a superior package manager that so much other stuff comes easily or automatically.
Anyway, this is a really cool idea, and something I want to look into more. You get so much of the "declarative and predictable" elements you want in a service-based architecture for free with Nix, while so many other solutions are bolted on clumsily.