about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAaron Janse <aaron@ajanse.me>2019-03-13 18:40:00 -0700
committerAaron Janse <aaron@ajanse.me>2019-03-13 18:40:00 -0700
commitf67eb111acf66cc3ad0e3da0b57b115e668f6e2b (patch)
tree1b39ab2708107146dcc6f3e852e204bd2947eebb /nixos
parent44298e76d5f5badef4b1026412049314eacf2949 (diff)
downloadnixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.tar
nixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.tar.gz
nixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.tar.bz2
nixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.tar.lz
nixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.tar.xz
nixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.tar.zst
nixlib-f67eb111acf66cc3ad0e3da0b57b115e668f6e2b.zip
nixos/manual: clarify declarative packages section
Diffstat (limited to 'nixos')
-rw-r--r--nixos/doc/manual/configuration/declarative-packages.xml13
1 files changed, 8 insertions, 5 deletions
diff --git a/nixos/doc/manual/configuration/declarative-packages.xml b/nixos/doc/manual/configuration/declarative-packages.xml
index be9884fe9dce..bf7430244545 100644
--- a/nixos/doc/manual/configuration/declarative-packages.xml
+++ b/nixos/doc/manual/configuration/declarative-packages.xml
@@ -14,9 +14,10 @@
 <programlisting>
 <xref linkend="opt-environment.systemPackages"/> = [ pkgs.thunderbird ];
 </programlisting>
-  The effect of this specification is that the Thunderbird package from Nixpkgs
-  will be built or downloaded as part of the system when you run
-  <command>nixos-rebuild switch</command>.
+  The <literal>pkgs</literal> variable is used to reference packages in your
+  root channel. The effect of this specification is that the Thunderbird
+  package from your root Nixpkgs channel will be built or downloaded as part of
+  the system when you run <command>nixos-rebuild switch</command>.
  </para>
 
  <para>
@@ -27,8 +28,10 @@ nixos.firefox   firefox-23.0   Mozilla Firefox - the browser, reloaded
 <replaceable>...</replaceable>
 </screen>
   The first column in the output is the <emphasis>attribute name</emphasis>,
-  such as <literal>nixos.thunderbird</literal>. (The <literal>nixos</literal>
-  prefix allows distinguishing between different channels that you might have.)
+  such as <literal>nixos.thunderbird</literal>. The <literal>nixos</literal>
+  prefix tells us that we want to get the package from the `nixos` channel.
+  Some systems have other channels installed, such as `nixpkgs` or custom
+  channels for development purposes.
  </para>
 
  <para>