Closed johnae closed 5 years ago
thanks!
Have you tried nixpkgs/nix
from the https://github.com/nix-community/docker-nixpkgs project?
I'm thinking of deprecating this project in favour of the other one
@zimbatm Yeah I actually looked at that project as well as https://github.com/LnL7/nix-docker. It's just that I don't fully understand how docker-nixpkgs are meant to be used. For example, what one probably tries first is:
docker run -ti --rm nixpkgs/nix-unstable:latest
but then
bash-4.4# nix-env -iA nixpkgs.git
error: getting information about '/root/.nix-defexpr': No such file or directory
So I'm missing something?
This updates nix to 2.2.1. To make this work as before inside a container I disabled sandboxing (which was enabled by default in 2.2 on Linux). I also fixed a few issues reported by shellcheck since I have that integrated in my editor.