nixos/manual: reword note in declarative packages section
This commit is contained in:
parent
f67eb111ac
commit
0258cff887
|
@ -14,10 +14,9 @@
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<xref linkend="opt-environment.systemPackages"/> = [ pkgs.thunderbird ];
|
<xref linkend="opt-environment.systemPackages"/> = [ pkgs.thunderbird ];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
The <literal>pkgs</literal> variable is used to reference packages in your
|
The effect of this specification is that the Thunderbird package from Nixpkgs
|
||||||
root channel. The effect of this specification is that the Thunderbird
|
will be built or downloaded as part of the system when you run
|
||||||
package from your root Nixpkgs channel will be built or downloaded as part of
|
<command>nixos-rebuild switch</command>.
|
||||||
the system when you run <command>nixos-rebuild switch</command>.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -28,10 +27,13 @@ nixos.firefox firefox-23.0 Mozilla Firefox - the browser, reloaded
|
||||||
<replaceable>...</replaceable>
|
<replaceable>...</replaceable>
|
||||||
</screen>
|
</screen>
|
||||||
The first column in the output is the <emphasis>attribute name</emphasis>,
|
The first column in the output is the <emphasis>attribute name</emphasis>,
|
||||||
such as <literal>nixos.thunderbird</literal>. The <literal>nixos</literal>
|
such as <literal>nixos.thunderbird</literal>.
|
||||||
prefix tells us that we want to get the package from the `nixos` channel.
|
</para>
|
||||||
Some systems have other channels installed, such as `nixpkgs` or custom
|
<para>
|
||||||
channels for development purposes.
|
Note: the <literal>nixos</literal> prefix tells us that we want to get the
|
||||||
|
package from the <literal>nixos</literal> channel and works only in CLI tools.
|
||||||
|
|
||||||
|
In declarative configuration use <literal>pkgs</literal> prefix (variable).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
|
Loading…
Reference in New Issue