The latest and recommended version of Nix is 1.11.13. 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-1.11.13 https://nixos.org/nix/install curl -o install-nix-1.11.13.sig https://nixos.org/nix/install.sig gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE gpg2 --verify ./install-nix-1.11.13.sig sh ./install-nix-1.11.13
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.