by moosingin3space · 9y ago · 0 comments
I say this as someone who really likes the ideas of Nix. In fact, I see the benefits of Docker as being solved reasonably well by Nix:
* Isolation of multiple applications on the same server are handled by NixOS containers, which use the same configuration as a NixOS system and use things like cgroups and namespaces,
* Immutable/declarative deployments (through things like docker-compose) are elegantly handled through nix-expressions,
* Multiple versions of a dependency are handled through the nix store.
I think a good measure would be to provide good tooling for generating Docker images from Nix, and this is what `guix pack` can do today. Once Nix has gotten over these pains, it can become a good developer tool, and from there, ops may choose to adopt it.
I've used it lightly and so far it has worked well.
This is exactly my point; the industry is blissfully unaware of the concepts themselves behind Nix. I'm not saying Nix itself is the ultimate piece of engineering but it's clearly ahead of industry thinking.
> What about a turn-key solution to deploy my app?
That's the idea of NixOps.