Nix (package manager): Difference between revisions
imported>Ixxie No edit summary |
imported>Mic92 No edit summary |
||
| Line 5: | Line 5: | ||
= Nix on Linux = | = 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). | |||
<syntaxHighlight lang="nix"> | |||
sudo install -d -m755 -o $USER -g $USER /nix | |||
curl https://nixos.org/nix/install | sh | |||
</syntaxHighlight> | |||
After that being done, you can use all nix commands as a normal user without any special permissions (for example by using <code>sudo</code>) | |||
== Common Errors == | == Common Errors == | ||