nix-community / docker-nix

Docker image for nix [maintainer=@zimbatm] [status=deprecated]
https://hub.docker.com/r/nixorg/nix/
Apache License 2.0
38 stars 9 forks source link

Update nix to 2.2.1 #21

Closed johnae closed 5 years ago

johnae commented 5 years ago

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.

zimbatm commented 5 years ago

thanks!

zimbatm commented 5 years ago

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

johnae commented 5 years ago

@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?