Last active
October 14, 2017 20:28
-
-
Save brainrake/bbc86d6168aaf83fd69327b573e031b1 to your computer and use it in GitHub Desktop.
Install Nix without sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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