The latest and recommended version of Nix is 2.0.4. The quickest way to install it on Linux and macOS is to run the following in a shell (as a user other than root):
curl https://nixos.org/nix/install | sh
Make sure to follow the instructions output by the script.
You may want to verify the integrity of the installation script using GPG:
curl -o install-nix-2.0.4 https://nixos.org/nix/install curl -o install-nix-2.0.4.sig https://nixos.org/nix/install.sig gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE gpg2 --verify ./install-nix-2.0.4.sig sh ./install-nix-2.0.4
The installation script requires that you have sudo access to root. You can uninstall Nix simply by running rm -rf /nix. See the manual for more information.
The following are also available:
You can grab the latest bleeding-edge pre-release from our continuous build system:
Old releases are also available.