You install it by running this installation script: https://nixos.org/nix/install
It should work on any Linux and OS X.