nixos: nixos/doc/manual/configuration/config-syntax.xml to CommonMark

Changed files
+41 -26
nixos
+19
nixos/doc/manual/configuration/config-syntax.chapter.md
···
+
# Configuration Syntax {#sec-configuration-syntax}
+
+
The NixOS configuration file `/etc/nixos/configuration.nix` is actually
+
a *Nix expression*, which is the Nix package manager's purely functional
+
language for describing how to build packages and configurations. This
+
means you have all the expressive power of that language at your
+
disposal, including the ability to abstract over common patterns, which
+
is very useful when managing complex systems. The syntax and semantics
+
of the Nix language are fully described in the [Nix
+
manual](https://nixos.org/nix/manual/#chap-writing-nix-expressions), but
+
here we give a short overview of the most important constructs useful in
+
NixOS configuration files.
+
+
```{=docbook}
+
<xi:include href="config-file.section.xml" />
+
<xi:include href="abstractions.section.xml" />
+
<xi:include href="modularity.section.xml" />
+
<xi:include href="summary.section.xml" />
+
```
-25
nixos/doc/manual/configuration/config-syntax.xml
···
-
<chapter xmlns="http://docbook.org/ns/docbook"
-
xmlns:xlink="http://www.w3.org/1999/xlink"
-
xmlns:xi="http://www.w3.org/2001/XInclude"
-
version="5.0"
-
xml:id="sec-configuration-syntax">
-
<title>Configuration Syntax</title>
-
<para>
-
The NixOS configuration file
-
<filename>/etc/nixos/configuration.nix</filename> is actually a <emphasis>Nix
-
expression</emphasis>, which is the Nix package manager’s purely functional
-
language for describing how to build packages and configurations. This means
-
you have all the expressive power of that language at your disposal,
-
including the ability to abstract over common patterns, which is very useful
-
when managing complex systems. The syntax and semantics of the Nix language
-
are fully described in the
-
<link
-
xlink:href="https://nixos.org/nix/manual/#chap-writing-nix-expressions">Nix
-
manual</link>, but here we give a short overview of the most important
-
constructs useful in NixOS configuration files.
-
</para>
-
<xi:include href="../from_md/configuration/config-file.section.xml" />
-
<xi:include href="../from_md/configuration/abstractions.section.xml" />
-
<xi:include href="../from_md/configuration/modularity.section.xml" />
-
<xi:include href="../from_md/configuration/summary.section.xml" />
-
</chapter>
+1 -1
nixos/doc/manual/configuration/configuration.xml
···
effect after you run <command>nixos-rebuild</command>.
</para>
</partintro>
-
<xi:include href="config-syntax.xml" />
+
<xi:include href="../from_md/configuration/config-syntax.chapter.xml" />
<xi:include href="package-mgmt.xml" />
<xi:include href="../from_md/configuration/user-mgmt.chapter.xml" />
<xi:include href="file-systems.xml" />
+21
nixos/doc/manual/from_md/configuration/config-syntax.chapter.xml
···
+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="sec-configuration-syntax">
+
<title>Configuration Syntax</title>
+
<para>
+
The NixOS configuration file
+
<literal>/etc/nixos/configuration.nix</literal> is actually a
+
<emphasis>Nix expression</emphasis>, which is the Nix package
+
manager’s purely functional language for describing how to build
+
packages and configurations. This means you have all the expressive
+
power of that language at your disposal, including the ability to
+
abstract over common patterns, which is very useful when managing
+
complex systems. The syntax and semantics of the Nix language are
+
fully described in the
+
<link xlink:href="https://nixos.org/nix/manual/#chap-writing-nix-expressions">Nix
+
manual</link>, but here we give a short overview of the most
+
important constructs useful in NixOS configuration files.
+
</para>
+
<xi:include href="config-file.section.xml" />
+
<xi:include href="abstractions.section.xml" />
+
<xi:include href="modularity.section.xml" />
+
<xi:include href="summary.section.xml" />
+
</chapter>