1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-18 03:50:12 -04:00

Merge pull request #13 from Munksgaard/fix-installation-instructions

Fix installation and download sections
This commit is contained in:
Graham Christensen 2017-11-04 02:27:38 -04:00 committed by GitHub
commit 926e878dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 40 deletions

View file

@ -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

View file

@ -1,2 +0,0 @@
# adduser nix
# mkdir -m 0755 /nix && chown nix /nix

View file

@ -1,4 +0,0 @@
# su - nix
$ tar -xf nix-1.7-x86_64-linux.tar.bz2
$ cd nix-1.7-x86_64-linux
$ ./install