@@ -4,20 +4,20 @@
44 version="5.0"
55 xml:id="sec-meta-attributes">
66
7−<title>Meta-attributes</title>
7+<title>Meta Attributes</title>
88
9−<para>Like Nix packages, NixOS modules can declare meta-attributes to provide
10− extra information. Module meta-attributes are defined in the
11− <filename
12− xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/meta.nix">meta.nix</filename>
9+<para>Like Nix packages, NixOS modules can declare meta-attributes to provide
10+ extra information. Module meta attributes are defined in the
11+ <filename
12+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/meta.nix">meta.nix</filename>
1313 special module.</para>
1414
15−<para><literal>meta</literal> is a top level attribute like
16− <literal>options</literal> and <literal>config</literal>. Available
17− meta-attributes are <literal>maintainers</literal> and
15+<para><literal>meta</literal> is a top level attribute like
16+ <literal>options</literal> and <literal>config</literal>. Available
17+ meta-attributes are <literal>maintainers</literal> and
1818 <literal>doc</literal>.</para>
1919
20−<para>Each of the meta-attributes must be defined at most once per module
20+<para>Each of the meta-attributes must be defined at most once per module
2121 file.</para>
2222
2323<programlisting>
@@ -26,13 +26,13 @@
2626 options = {
2727 ...
2828 };
29−
29+
3030 config = {
3131 ...
3232 };
33−
33+
3434 meta = {
35− maintainers = with lib.maintainers; [ ericsagnes ]; <co
35+ maintainers = with lib.maintainers; [ ericsagnes ]; <co
3636 xml:id='modules-meta-1' />
3737 doc = ./default.xml; <co xml:id='modules-meta-2' />
3838 };
@@ -48,11 +48,11 @@
4848
4949 <callout arearefs='modules-meta-2'>
5050 <para>
51− <varname>doc</varname> point to a valid docbook file containing the module
52− documentation, its contents are automatically added to the <xref
51+ <varname>doc</varname> points to a valid DocBook file containing the module
52+ documentation. Its contents is automatically added to <xref
5353 linkend="ch-configuration"/>.
54− Changes to a module documentation must be checked to be non-breaking by
55− building the NixOS manual.
54+ Changes to a module documentation have to be checked to not break
55+ building the NixOS manual:
5656 </para>
5757 <programlisting>$ nix-build nixos/release.nix -A manual</programlisting>
5858 </callout>