diff --git a/nixos/doc/manual/configuration/config-file.xml b/nixos/doc/manual/configuration/config-file.xml index 7ccb5b3664ea..19cfb57920df 100644 --- a/nixos/doc/manual/configuration/config-file.xml +++ b/nixos/doc/manual/configuration/config-file.xml @@ -16,9 +16,10 @@ The first line ({ config, pkgs, ... }:) denotes that this is actually a function that takes at least the two arguments config and pkgs. (These are explained - later.) The function returns a set of option definitions - ({ ... }). These definitions - have the form name = + later, in chapter ) The function returns + a set of option definitions ({ + ... }). These definitions have the form + name = value, where name is the name of an option and value is its value. For example, diff --git a/nixos/doc/manual/development/writing-modules.xml b/nixos/doc/manual/development/writing-modules.xml index d244356dbed1..fad4637f51f0 100644 --- a/nixos/doc/manual/development/writing-modules.xml +++ b/nixos/doc/manual/development/writing-modules.xml @@ -74,7 +74,10 @@ linkend="sec-configuration-syntax"/>, we saw the following structure This line makes the current Nix expression a function. The variable - pkgs contains Nixpkgs, while config + pkgs contains Nixpkgs (by default, it takes the + nixpkgs entry of NIX_PATH, see the Nix + manual for further details), while config contains the full system configuration. This line can be omitted if there is no reference to pkgs and config inside the module.