Install Nix

Install Nix on any Linux distribution, MacOS and Windows (via WSL) via the recommended multi-user installation:

sh <(curl -L --daemon


For security you may want to verify the installation script using GPG signatures.

Verify installation

Check that the installation was successful:

$ nix-env --version
nix-env (Nix) 2.3.6

Use Docker to explore Nix

Start a Docker shell with Nix:

$ docker run -it nixos/nix

Or start a Docker shell with Nix exposing a workdir directory:

$ mkdir workdir
$ docker run -it -v $(pwd)/workdir:/workdir nixos/nix