mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
Merge pull request #97 from mhwombat/master
Added clarification for NixOS users
This commit is contained in:
commit
9d1aa6a7ca
|
@ -15,6 +15,9 @@
|
||||||
<para>
|
<para>
|
||||||
Now we'll install Nix on our running system and understand what
|
Now we'll install Nix on our running system and understand what
|
||||||
changed in our system after the installation.
|
changed in our system after the installation.
|
||||||
|
<emphasis role="bold">If you're using NixOS, Nix is already installed;
|
||||||
|
you can skip to the <link
|
||||||
|
linkend="install-on-your-running-system">next</link> pill.</emphasis>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -66,7 +69,7 @@
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
That's the <filename>/nix/store</filename> we
|
That's the <filename>/nix/store</filename> we
|
||||||
were talking in the first article. We're copying in the
|
were talking in the first article. We're copying in the
|
||||||
necessary software to bootstrap a Nix system. You can see bash,
|
necessary software to bootstrap a Nix system. You can see bash,
|
||||||
coreutils, the C compiler toolchain, perl libraries, sqlite and Nix itself
|
coreutils, the C compiler toolchain, perl libraries, sqlite and Nix itself
|
||||||
with its own tools and libnix.
|
with its own tools and libnix.
|
||||||
|
@ -133,7 +136,7 @@
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
A profile in Nix is a general and convenient concept for
|
A profile in Nix is a general and convenient concept for
|
||||||
realizing rollbacks. Profiles are used to compose
|
realizing rollbacks. Profiles are used to compose
|
||||||
components that are spread among multiple paths under a new
|
components that are spread among multiple paths under a new
|
||||||
unified path. Not only that, but profiles are made up of multiple
|
unified path. Not only that, but profiles are made up of multiple
|
||||||
"generations": they are versioned. Whenever you change a profile,
|
"generations": they are versioned. Whenever you change a profile,
|
||||||
|
@ -152,7 +155,7 @@
|
||||||
<xi:include href="./02/profile.xml" parse="xml" />
|
<xi:include href="./02/profile.xml" parse="xml" />
|
||||||
<para>
|
<para>
|
||||||
That <package>nix-2.1.3</package> derivation in the Nix store is
|
That <package>nix-2.1.3</package> derivation in the Nix store is
|
||||||
Nix itself, with binaries and libraries. The process of "installing"
|
Nix itself, with binaries and libraries. The process of "installing"
|
||||||
the derivation in the profile basically reproduces the hierarchy of the
|
the derivation in the profile basically reproduces the hierarchy of the
|
||||||
<package>nix-2.1.3</package> store derivation in the profile by means of
|
<package>nix-2.1.3</package> store derivation in the profile by means of
|
||||||
symbolic links.
|
symbolic links.
|
||||||
|
@ -239,7 +242,7 @@
|
||||||
does is simply to add <filename>~/.nix-profile/bin</filename> to
|
does is simply to add <filename>~/.nix-profile/bin</filename> to
|
||||||
<varname>PATH</varname> and
|
<varname>PATH</varname> and
|
||||||
<filename>~/.nix-defexpr/channels/nixpkgs</filename> to
|
<filename>~/.nix-defexpr/channels/nixpkgs</filename> to
|
||||||
<varname>NIX_PATH</varname>. We'll discuss
|
<varname>NIX_PATH</varname>. We'll discuss
|
||||||
<varname>NIX_PATH</varname> later.
|
<varname>NIX_PATH</varname> later.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,11 @@
|
||||||
<section>
|
<section>
|
||||||
<title>Enter the environment</title>
|
<title>Enter the environment</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<emphasis role="bold">If you're using NixOS, you can skip to the <link
|
||||||
|
linkend="install-something">next</link> step.</emphasis>
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In the previous article we created a Nix user, so let's start by switching
|
In the previous article we created a Nix user, so let's start by switching
|
||||||
to it with <command>su - nix</command>. If your
|
to it with <command>su - nix</command>. If your
|
||||||
|
@ -36,7 +41,7 @@
|
||||||
</para>
|
</para>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section xml:id="install-something">
|
||||||
<title>Install something</title>
|
<title>Install something</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -325,6 +330,12 @@
|
||||||
|
|
||||||
<screen><xi:include href="./03/channel-list.txt" parse="text" /></screen>
|
<screen><xi:include href="./03/channel-list.txt" parse="text" /></screen>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
If you're using NixOS, you may not see any output from the above command
|
||||||
|
(if you're using the default), or you may see a channel whose
|
||||||
|
name begins with "nixos-" instead of "nixpkgs".
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
That's essentially the contents of <filename>~/.nix-channels</filename>.
|
That's essentially the contents of <filename>~/.nix-channels</filename>.
|
||||||
</para>
|
</para>
|
||||||
|
|
Loading…
Reference in a new issue