+1
nixos/doc/manual/configuration/config-syntax.xml
+1
nixos/doc/manual/configuration/config-syntax.xml
···
+46
nixos/doc/manual/configuration/summary.section.md
+46
nixos/doc/manual/configuration/summary.section.md
···+|-----------------------------------------------|--------------------------------------------------------------------------------------------------------------------|+| `"${pkgs.bash}/bin/sh"` | A string containing an expression (expands to `"/nix/store/hash-bash-version/bin/sh"`) |+| `rec { x = "foo"; y = x + "bar"; }` | A recursive set, equivalent to `{ x = "foo"; y = "foobar"; }` |+| `{ x = 1; y = 2; } // { z = 3; }` | Merge two sets (attributes in the right-hand set taking precedence) |+| `assert 1 + 1 == 2; "yes!"` | Assertion check (evaluates to `"yes!"`). See [](#sec-assertions) for using assertions in modules |+| `with pkgs.lib; head [ 1 2 3 ]` | Add all attributes from the given set to the scope (evaluates to `1`) |+| `let inc = x: x + 1; in inc (inc (inc 100))` | A function bound to a variable and subsequently called by name (evaluates to 103) |+| `{ x, y }: x + y` | A function that expects a set with required attributes `x` and `y` and concatenates them |+| `{ x, y ? "bar" }: x + y` | A function that expects a set with required attribute `x` and optional `y`, using `"bar"` as default value for `y` |+| `{ x, y, ... }: x + y` | A function that expects a set with required attributes `x` and `y` and ignores any other attributes |+| `{ x, y } @ args: x + y` | A function that expects a set with required attributes `x` and `y`, and binds the whole set to `args` |+| `map (x: x + x) [ 1 2 3 ]` | Apply a function to every element of a list (evaluates to `[ 2 4 6 ]`) |
-227
nixos/doc/manual/configuration/summary.xml
-227
nixos/doc/manual/configuration/summary.xml
···-<entry>A string containing an expression (expands to <literal>"/nix/store/<replaceable>hash</replaceable>-bash-<replaceable>version</replaceable>/bin/sh"</literal>)</entry>-<entry>A function bound to a variable and subsequently called by name (evaluates to 103)</entry>-<entry>Apply a function to every element of a list (evaluates to <literal>[ 2 4 6 ]</literal>)</entry>
+332
nixos/doc/manual/from_md/configuration/summary.section.xml
+332
nixos/doc/manual/from_md/configuration/summary.section.xml
···+<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sec-nix-syntax-summary">