Has the container situation improved? Last time I looked (quite some time ago) I couldn’t find an official or community blessed container to base anything on.
Nix supports containers as a build target or output format, but the nix tools are considerate (easy to uninstall) so there's no need (& little sense) in putting them in a container. You could run the nix install script in a ubuntu or alpine image.
I use Nix on macOS, wishing I could replace all my brew usage with it. Working on a home-manager derived setup.
This is the sort of thing I was looking for. There may not be much too it, (and as another comment mentioned, the package management tools can output containers) but having a blessed starting point shows a clear signal to potential user that it's not just an afterthought.
I use Nix on macOS, wishing I could replace all my brew usage with it. Working on a home-manager derived setup.
The dev workflow mentioned by tikhonj https://christine.website/blog/how-i-start-nix-2020-03-08 (including a "derivation" building a container from the example project).
https://nixos.org/guides/nix-pills/