Installation
Download available at https://nixos.org/download.html.
Simplest way is to run this on Linux:
sh <(curl -L https://nixos.org/nix/install) --daemon
On MacOS:
sh <(curl -L https://nixos.org/nix/install)
After installation, you might need to relogin to your shell to reload the environment. Otherwise, run the following to use Nix immediately:
source ~/.nix-profile/etc/profile.d/nix.sh
Update
If you have installed Nix before but have not updated it for a while, you should update it with:
nix-channel --update
This helps ensure we are installing the latest version of packages in global installation and global imports.