Skip to content

Instantly share code, notes, and snippets.

@brainrake
Last active October 14, 2017 20:28
Show Gist options
  • Save brainrake/bbc86d6168aaf83fd69327b573e031b1 to your computer and use it in GitHub Desktop.
Save brainrake/bbc86d6168aaf83fd69327b573e031b1 to your computer and use it in GitHub Desktop.
Install Nix without sudo
#!/bin/sh
# Create the /nix directory, and change its ownership
sudo mkdir -p -m 0755 /nix
sudo chown $USER /nix
# Now install normally. It will not use sudo or ask for password.
curl https://nixos.org/nix/install | sh
# Or download, unpack, and run `./install` manually
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment