Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Last active August 31, 2016 22:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-martin/62a03f14db5738c11e9c8ca786b236d6 to your computer and use it in GitHub Desktop.
Save chris-martin/62a03f14db5738c11e9c8ca786b236d6 to your computer and use it in GitHub Desktop.

Step one

curl https://nixos.org/nix/install | sh

Step two

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"

Step three

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

Step four

Run this to test whether it's working:

nix-shell -p rogue --command rogue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment