mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
Merge pull request #13 from Munksgaard/fix-installation-instructions
Fix installation and download sections
This commit is contained in:
commit
926e878dce
|
@ -25,46 +25,17 @@
|
||||||
place out of our way.
|
place out of our way.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<section>
|
|
||||||
<title>Download</title>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
You can grab the nix installation script (nix 1.11.5 during this
|
|
||||||
writing) here: <link
|
|
||||||
xlink:href="https://nixos.org/nix/install">https://nixos.org/nix/install</link>.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
One way to install is simply to run <command>curl https://nixos.org/nix/install | sh</command> as a non-root user. You may prefer
|
|
||||||
to download the installation script and verify its integrity
|
|
||||||
using GPG signatures, instructions for doing that can be found
|
|
||||||
here: <link
|
|
||||||
xlink:href="https://nixos.org/nix/download.html">https://nixos.org/nix/download.html</link>.
|
|
||||||
</para>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>Installation</title>
|
<title>Installation</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To ensure we don't mess with the system, you could create a
|
To install Nix, run <command>curl https://nixos.org/nix/install | sh</command>
|
||||||
custom user to let him own the Nix store, let's call it
|
as a non-root user and follow the instructions. Alternatively, you may
|
||||||
<literal>nix</literal>.
|
prefer to download the installation script and verify its integrity using
|
||||||
|
GPG signatures. Instructions for doing so can be found here: <link
|
||||||
|
xlink:href="https://nixos.org/nix/download.html">https://nixos.org/nix/download.html</link>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
|
||||||
As root:
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<screen><xi:include href="./02/add-user-chown.txt" parse="text" /></screen>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
From now on, all the operations we do on the shell are done from
|
|
||||||
this nix user:
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<screen><xi:include href="./02/extract-as-nix.txt" parse="text" /></screen>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
My pills are not a simple tutorial, there's are several articles
|
My pills are not a simple tutorial, there's are several articles
|
||||||
out there to learn the basics of nix and unix. We'll instead
|
out there to learn the basics of nix and unix. We'll instead
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
# adduser nix
|
|
||||||
# mkdir -m 0755 /nix && chown nix /nix
|
|
|
@ -1,4 +0,0 @@
|
||||||
# su - nix
|
|
||||||
$ tar -xf nix-1.7-x86_64-linux.tar.bz2
|
|
||||||
$ cd nix-1.7-x86_64-linux
|
|
||||||
$ ./install
|
|
Loading…
Reference in a new issue