Skip to content

Commit

Permalink
Merge pull request #13 from Munksgaard/fix-installation-instructions
Browse files Browse the repository at this point in the history
Fix installation and download sections
  • Loading branch information
grahamc authored Nov 4, 2017
2 parents ddcdca2 + 322cc3a commit 926e878
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 40 deletions.
39 changes: 5 additions & 34 deletions pills/02-install-on-your-running.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,46 +25,17 @@
place out of our way.
</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>
<title>Installation</title>

<para>
To ensure we don't mess with the system, you could create a
custom user to let him own the Nix store, let's call it
<literal>nix</literal>.
To install Nix, run <command>curl https://nixos.org/nix/install | sh</command>
as a non-root user and follow the instructions. Alternatively, you may
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>
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>
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
Expand Down
2 changes: 0 additions & 2 deletions pills/02/add-user-chown.txt

This file was deleted.

4 changes: 0 additions & 4 deletions pills/02/extract-as-nix.txt

This file was deleted.

0 comments on commit 926e878

Please sign in to comment.