···44 version="5.0"
55 xml:id="sec-meta-attributes">
6677-<title>Meta-attributes</title>
77+<title>Meta Attributes</title>
8899-<para>Like Nix packages, NixOS modules can declare meta-attributes to provide
1010- extra information. Module meta-attributes are defined in the
1111- <filename
1212- xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/meta.nix">meta.nix</filename>
99+<para>Like Nix packages, NixOS modules can declare meta-attributes to provide
1010+ extra information. Module meta attributes are defined in the
1111+ <filename
1212+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/meta.nix">meta.nix</filename>
1313 special module.</para>
14141515-<para><literal>meta</literal> is a top level attribute like
1616- <literal>options</literal> and <literal>config</literal>. Available
1717- meta-attributes are <literal>maintainers</literal> and
1515+<para><literal>meta</literal> is a top level attribute like
1616+ <literal>options</literal> and <literal>config</literal>. Available
1717+ meta-attributes are <literal>maintainers</literal> and
1818 <literal>doc</literal>.</para>
19192020-<para>Each of the meta-attributes must be defined at most once per module
2020+<para>Each of the meta-attributes must be defined at most once per module
2121 file.</para>
22222323<programlisting>
···2626 options = {
2727 ...
2828 };
2929-2929+3030 config = {
3131 ...
3232 };
3333-3333+3434 meta = {
3535- maintainers = with lib.maintainers; [ ericsagnes ]; <co
3535+ maintainers = with lib.maintainers; [ ericsagnes ]; <co
3636 xml:id='modules-meta-1' />
3737 doc = ./default.xml; <co xml:id='modules-meta-2' />
3838 };
···48484949 <callout arearefs='modules-meta-2'>
5050 <para>
5151- <varname>doc</varname> point to a valid docbook file containing the module
5252- documentation, its contents are automatically added to the <xref
5151+ <varname>doc</varname> points to a valid DocBook file containing the module
5252+ documentation. Its contents is automatically added to <xref
5353 linkend="ch-configuration"/>.
5454- Changes to a module documentation must be checked to be non-breaking by
5555- building the NixOS manual.
5454+ Changes to a module documentation have to be checked to not break
5555+ building the NixOS manual:
5656 </para>
5757 <programlisting>$ nix-build nixos/release.nix -A manual</programlisting>
5858 </callout>