Nix package manager: Difference between revisions
imported>Mic92 No edit summary |
imported>Mic92 |
||
Line 10: | Line 10: | ||
To install nix from any Linux distribution, use the following two commands (assumes you have right to use sudo and you are logged in as the user you want to install nix for). | To install nix from any Linux distribution, use the following two commands (assumes you have right to use sudo and you are logged in as the user you want to install nix for). | ||
<syntaxHighlight lang=" | <syntaxHighlight lang="bash"> | ||
sudo install -d -m755 -o $USER -g $USER /nix | sudo install -d -m755 -o $USER -g $USER /nix | ||
curl https://nixos.org/nix/install | sh | curl https://nixos.org/nix/install | sh |
Revision as of 13:54, 24 August 2017
This discussion article is to cover the usage, internals and configuration of the Nix package manager.
Nix on Linux
Install nix for a single user
To install nix from any Linux distribution, use the following two commands (assumes you have right to use sudo and you are logged in as the user you want to install nix for).
sudo install -d -m755 -o $USER -g $USER /nix
curl https://nixos.org/nix/install | sh
After that being done, you can use all nix commands as a normal user without any special permissions (for example by using sudo
)
Common Errors
Bad configuration option: gssapikexalgorithms
Found when using an SSH binary from Nix on typically RPM-based distros like CentOS, Fedora, Scientific Linux, Redhat, etc. The quick fix: Just comment out the configuration option in the ssh config file, you probably don't need it.