Install Nix on any Linux distribution, MacOS and Windows (via WSL) via the recommended multi-user installation:
sh <(curl -L https://nixos.org/nix/install) --daemon
For security you may want to verify installation script using GPG signatures.
Check that the installation was successful:
$ nix-env --version nix-env (Nix) 2.3.6