> I'm serious, I haven't had a "works on my machine [but not on others]" issue in years. Not a single one.<p>Clearly you haven't touched OpenGL. Nix apps on non-nixos need a wrapper to use OpenGL and what's worse is that you need a different wrapper for each GPU vendor
I actually used nix in place of dockerfiles to build docker images, as it helped produce a perfectly minimal image for N architectures without much effort.
> Use a Dockerfile and the official Nix image to build your application using Nix using roughly one shell command.<p>I'd misread the title, & thought this would be about using nixpkgs' dockerTools.<p><a href="https://nix.dev/tutorials/building-and-running-docker-images" rel="nofollow">https://nix.dev/tutorials/building-and-running-docker-images</a><p>I would assume that the resulting image is about the same, but you wouldn't need a bespoke Dockerfile. The downsides being that you'd need to know nix to maintain it (which you would anyway with this approach), and you'd need `nix` rather than `docker` to build the image.
I think this is something the writer of the article would be delighted to find: <a href="https://github.com/railwayapp/nixpacks">https://github.com/railwayapp/nixpacks</a>