logoalt Hacker News

mikepurvis • today at 6:03 PM • 0 replies • view on HN

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.