From f67eb111acf66cc3ad0e3da0b57b115e668f6e2b Mon Sep 17 00:00:00 2001 From: Aaron Janse Date: Wed, 13 Mar 2019 18:40:00 -0700 Subject: [PATCH] nixos/manual: clarify declarative packages section --- .../manual/configuration/declarative-packages.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/doc/manual/configuration/declarative-packages.xml b/nixos/doc/manual/configuration/declarative-packages.xml index be9884fe9dc..bf743024454 100644 --- a/nixos/doc/manual/configuration/declarative-packages.xml +++ b/nixos/doc/manual/configuration/declarative-packages.xml @@ -14,9 +14,10 @@ = [ pkgs.thunderbird ]; - 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 - nixos-rebuild switch. + The pkgs 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 nixos-rebuild switch. @@ -27,8 +28,10 @@ nixos.firefox firefox-23.0 Mozilla Firefox - the browser, reloaded ... The first column in the output is the attribute name, - such as nixos.thunderbird. (The nixos - prefix allows distinguishing between different channels that you might have.) + such as nixos.thunderbird. The nixos + 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.