curl https://nixos.org/nix/install | sh
Add the following lines to the end of ~/.zshrc
:
source $HOME/.nix-profile/etc/profile.d/nix.sh
export NIX_PATH="nixpkgs=$HOME/.nix-defexpr/channels/nixos-16.03"
Run the following commands in a new shell, because you'll need to .zshrc
changes made by step two:
nix-channel --add http://nixos.org/channels/nixos-16.03 nixos-16.03
nix-channel --update
Run this to test whether it's working:
nix-shell -p rogue --command rogue