···4545 ["lxqt" "lxqt-qtplugin"]
4646 ["libsForQt5" "plasma-integration"]
4747 ];
4848- description = ''
4949- Selects the platform theme to use for Qt5 applications.</para>
5050- <para>The options are
5151- <variablelist>
5252- <varlistentry>
5353- <term><literal>gtk</literal></term>
5454- <listitem><para>Use GTK theme with
5555- <link xlink:href="https://github.com/qt/qtstyleplugins">qtstyleplugins</link>
5656- </para></listitem>
5757- </varlistentry>
5858- <varlistentry>
5959- <term><literal>gnome</literal></term>
6060- <listitem><para>Use GNOME theme with
6161- <link xlink:href="https://github.com/FedoraQt/QGnomePlatform">qgnomeplatform</link>
6262- </para></listitem>
6363- </varlistentry>
6464- <varlistentry>
6565- <term><literal>lxqt</literal></term>
6666- <listitem><para>Use LXQt style set using the
6767- <link xlink:href="https://github.com/lxqt/lxqt-config">lxqt-config-appearance</link>
6868- application.
6969- </para></listitem>
7070- </varlistentry>
7171- <varlistentry>
7272- <term><literal>qt5ct</literal></term>
7373- <listitem><para>Use Qt style set using the
7474- <link xlink:href="https://sourceforge.net/projects/qt5ct/">qt5ct</link>
7575- application.
7676- </para></listitem>
7777- </varlistentry>
7878- <varlistentry>
7979- <term><literal>kde</literal></term>
8080- <listitem><para>Use Qt settings from Plasma.</para></listitem>
8181- </varlistentry>
8282- </variablelist>
4848+ description = lib.mdDoc ''
4949+ Selects the platform theme to use for Qt5 applications.
5050+5151+ The options are
5252+ - `gtk`: Use GTK theme with [qtstyleplugins](https://github.com/qt/qtstyleplugins)
5353+ - `gnome`: Use GNOME theme with [qgnomeplatform](https://github.com/FedoraQt/QGnomePlatform)
5454+ - `lxqt`: Use LXQt style set using the [lxqt-config-appearance](https://github.com/lxqt/lxqt-config)
5555+ application.
5656+ - `qt5ct`: Use Qt style set using the [qt5ct](https://sourceforge.net/projects/qt5ct/)
5757+ application.
5858+ - `kde`: Use Qt settings from Plasma.
8359 '';
8460 };
8561···9773 "adwaita-qt"
9874 ["libsForQt5" "qtstyleplugins"]
9975 ];
100100- description = ''
101101- Selects the style to use for Qt5 applications.</para>
102102- <para>The options are
103103- <variablelist>
104104- <varlistentry>
105105- <term><literal>adwaita</literal></term>
106106- <term><literal>adwaita-dark</literal></term>
107107- <listitem><para>Use Adwaita Qt style with
108108- <link xlink:href="https://github.com/FedoraQt/adwaita-qt">adwaita</link>
109109- </para></listitem>
110110- </varlistentry>
111111- <varlistentry>
112112- <term><literal>cleanlooks</literal></term>
113113- <term><literal>gtk2</literal></term>
114114- <term><literal>motif</literal></term>
115115- <term><literal>plastique</literal></term>
116116- <listitem><para>Use styles from
117117- <link xlink:href="https://github.com/qt/qtstyleplugins">qtstyleplugins</link>
118118- </para></listitem>
119119- </varlistentry>
120120- </variablelist>
7676+ description = lib.mdDoc ''
7777+ Selects the style to use for Qt5 applications.
7878+7979+ The options are
8080+ - `adwaita`, `adwaita-dark`: Use Adwaita Qt style with
8181+ [adwaita](https://github.com/FedoraQt/adwaita-qt)
8282+ - `cleanlooks`, `gtk2`, `motif`, `plastique`: Use styles from
8383+ [qtstyleplugins](https://github.com/qt/qtstyleplugins)
12184 '';
12285 };
12386 };
+13-46
nixos/modules/system/boot/resolved.nix
···1515 services.resolved.enable = mkOption {
1616 default = false;
1717 type = types.bool;
1818- description = ''
1818+ description = lib.mdDoc ''
1919 Whether to enable the systemd DNS resolver daemon.
2020 '';
2121 };
···2424 default = [ ];
2525 example = [ "8.8.8.8" "2001:4860:4860::8844" ];
2626 type = types.listOf types.str;
2727- description = ''
2727+ description = lib.mdDoc ''
2828 A list of IPv4 and IPv6 addresses to use as the fallback DNS servers.
2929 If this option is empty, a compiled-in list of DNS servers is used instead.
3030 '';
···3535 defaultText = literalExpression "config.networking.search";
3636 example = [ "example.com" ];
3737 type = types.listOf types.str;
3838- description = ''
3838+ description = lib.mdDoc ''
3939 A list of domains. These domains are used as search suffixes
4040 when resolving single-label host names (domain names which
4141 contain no dot), in order to qualify them into fully-qualified
···43434444 For compatibility reasons, if this setting is not specified,
4545 the search domains listed in
4646- <filename>/etc/resolv.conf</filename> are used instead, if
4646+ {file}`/etc/resolv.conf` are used instead, if
4747 that file exists and any domains are configured in it.
4848 '';
4949 };
···5252 default = "true";
5353 example = "false";
5454 type = types.enum [ "true" "resolve" "false" ];
5555- description = ''
5555+ description = lib.mdDoc ''
5656 Controls Link-Local Multicast Name Resolution support
5757 (RFC 4795) on the local host.
58585959 If set to
6060-6161- <variablelist>
6262- <varlistentry>
6363- <term><literal>"true"</literal></term>
6464- <listitem><para>
6565- Enables full LLMNR responder and resolver support.
6666- </para></listitem>
6767- </varlistentry>
6868- <varlistentry>
6969- <term><literal>"false"</literal></term>
7070- <listitem><para>
7171- Disables both.
7272- </para></listitem>
7373- </varlistentry>
7474- <varlistentry>
7575- <term><literal>"resolve"</literal></term>
7676- <listitem><para>
7777- Only resolution support is enabled, but responding is disabled.
7878- </para></listitem>
7979- </varlistentry>
8080- </variablelist>
6060+ - `"true"`: Enables full LLMNR responder and resolver support.
6161+ - `"false"`: Disables both.
6262+ - `"resolve"`: Only resolution support is enabled, but responding is disabled.
8163 '';
8264 };
8365···8567 default = "allow-downgrade";
8668 example = "true";
8769 type = types.enum [ "true" "allow-downgrade" "false" ];
8888- description = ''
7070+ description = lib.mdDoc ''
8971 If set to
9090- <variablelist>
9191- <varlistentry>
9292- <term><literal>"true"</literal></term>
9393- <listitem><para>
7272+ - `"true"`:
9473 all DNS lookups are DNSSEC-validated locally (excluding
9574 LLMNR and Multicast DNS). Note that this mode requires a
9675 DNS server that supports DNSSEC. If the DNS server does
9776 not properly support DNSSEC all validations will fail.
9898- </para></listitem>
9999- </varlistentry>
100100- <varlistentry>
101101- <term><literal>"allow-downgrade"</literal></term>
102102- <listitem><para>
7777+ - `"allow-downgrade"`:
10378 DNSSEC validation is attempted, but if the server does not
10479 support DNSSEC properly, DNSSEC mode is automatically
10580 disabled. Note that this mode makes DNSSEC validation
···10782 be able to trigger a downgrade to non-DNSSEC mode by
10883 synthesizing a DNS response that suggests DNSSEC was not
10984 supported.
110110- </para></listitem>
111111- </varlistentry>
112112- <varlistentry>
113113- <term><literal>"false"</literal></term>
114114- <listitem><para>
115115- DNS lookups are not DNSSEC validated.
116116- </para></listitem>
117117- </varlistentry>
118118- </variablelist>
8585+ - `"false"`: DNS lookups are not DNSSEC validated.
11986 '';
12087 };
1218812289 services.resolved.extraConfig = mkOption {
12390 default = "";
12491 type = types.lines;
125125- description = ''
9292+ description = lib.mdDoc ''
12693 Extra config to append to resolved.conf.
12794 '';
12895 };
+40-63
nixos/modules/virtualisation/oci-containers.nix
···14141515 image = mkOption {
1616 type = with types; str;
1717- description = "OCI image to run.";
1717+ description = lib.mdDoc "OCI image to run.";
1818 example = "library/hello-world";
1919 };
20202121 imageFile = mkOption {
2222 type = with types; nullOr package;
2323 default = null;
2424- description = ''
2424+ description = lib.mdDoc ''
2525 Path to an image file to load before running the image. This can
2626 be used to bypass pulling the image from the registry.
27272828- The <literal>image</literal> attribute must match the name and
2828+ The `image` attribute must match the name and
2929 tag of the image contained in this file, as they will be used to
3030 run the container with that image. If they do not match, the
3131 image will be pulled from the registry as usual.
···3838 username = mkOption {
3939 type = with types; nullOr str;
4040 default = null;
4141- description = "Username for login.";
4141+ description = lib.mdDoc "Username for login.";
4242 };
43434444 passwordFile = mkOption {
4545 type = with types; nullOr str;
4646 default = null;
4747- description = "Path to file containing password.";
4747+ description = lib.mdDoc "Path to file containing password.";
4848 example = "/etc/nixos/dockerhub-password.txt";
4949 };
50505151 registry = mkOption {
5252 type = with types; nullOr str;
5353 default = null;
5454- description = "Registry where to login to.";
5454+ description = lib.mdDoc "Registry where to login to.";
5555 example = "https://docker.pkg.github.com";
5656 };
5757···6060 cmd = mkOption {
6161 type = with types; listOf str;
6262 default = [];
6363- description = "Commandline arguments to pass to the image's entrypoint.";
6363+ description = lib.mdDoc "Commandline arguments to pass to the image's entrypoint.";
6464 example = literalExpression ''
6565 ["--port=9000"]
6666 '';
···68686969 entrypoint = mkOption {
7070 type = with types; nullOr str;
7171- description = "Override the default entrypoint of the image.";
7171+ description = lib.mdDoc "Override the default entrypoint of the image.";
7272 default = null;
7373 example = "/bin/my-app";
7474 };
···7676 environment = mkOption {
7777 type = with types; attrsOf str;
7878 default = {};
7979- description = "Environment variables to set for this container.";
7979+ description = lib.mdDoc "Environment variables to set for this container.";
8080 example = literalExpression ''
8181 {
8282 DATABASE_HOST = "db.example.com";
···8888 environmentFiles = mkOption {
8989 type = with types; listOf path;
9090 default = [];
9191- description = "Environment files for this container.";
9191+ description = lib.mdDoc "Environment files for this container.";
9292 example = literalExpression ''
9393 [
9494 /path/to/.env
···100100 log-driver = mkOption {
101101 type = types.str;
102102 default = "journald";
103103- description = ''
103103+ description = lib.mdDoc ''
104104 Logging driver for the container. The default of
105105- <literal>"journald"</literal> means that the container's logs will be
105105+ `"journald"` means that the container's logs will be
106106 handled as part of the systemd unit.
107107108108 For more details and a full list of logging drivers, refer to respective backends documentation.
109109110110 For Docker:
111111- <link xlink:href="https://docs.docker.com/engine/reference/run/#logging-drivers---log-driver">Docker engine documentation</link>
111111+ [Docker engine documentation](https://docs.docker.com/engine/reference/run/#logging-drivers---log-driver)
112112113113 For Podman:
114114 Refer to the docker-run(1) man page.
···118118 ports = mkOption {
119119 type = with types; listOf str;
120120 default = [];
121121- description = ''
121121+ description = lib.mdDoc ''
122122 Network ports to publish from the container to the outer host.
123123124124 Valid formats:
125125+ - `<ip>:<hostPort>:<containerPort>`
126126+ - `<ip>::<containerPort>`
127127+ - `<hostPort>:<containerPort>`
128128+ - `<containerPort>`
125129126126- <itemizedlist>
127127- <listitem>
128128- <para>
129129- <literal><ip>:<hostPort>:<containerPort></literal>
130130- </para>
131131- </listitem>
132132- <listitem>
133133- <para>
134134- <literal><ip>::<containerPort></literal>
135135- </para>
136136- </listitem>
137137- <listitem>
138138- <para>
139139- <literal><hostPort>:<containerPort></literal>
140140- </para>
141141- </listitem>
142142- <listitem>
143143- <para>
144144- <literal><containerPort></literal>
145145- </para>
146146- </listitem>
147147- </itemizedlist>
148148-149149- Both <literal>hostPort</literal> and
150150- <literal>containerPort</literal> can be specified as a range of
130130+ Both `hostPort` and `containerPort` can be specified as a range of
151131 ports. When specifying ranges for both, the number of container
152132 ports in the range must match the number of host ports in the
153153- range. Example: <literal>1234-1236:1234-1236/tcp</literal>
133133+ range. Example: `1234-1236:1234-1236/tcp`
154134155155- When specifying a range for <literal>hostPort</literal> only, the
156156- <literal>containerPort</literal> must <emphasis>not</emphasis> be a
157157- range. In this case, the container port is published somewhere
158158- within the specified <literal>hostPort</literal> range. Example:
159159- <literal>1234-1236:1234/tcp</literal>
135135+ When specifying a range for `hostPort` only, the `containerPort`
136136+ must *not* be a range. In this case, the container port is published
137137+ somewhere within the specified `hostPort` range.
138138+ Example: `1234-1236:1234/tcp`
160139161140 Refer to the
162162- <link xlink:href="https://docs.docker.com/engine/reference/run/#expose-incoming-ports">
163163- Docker engine documentation</link> for full details.
141141+ [Docker engine documentation](https://docs.docker.com/engine/reference/run/#expose-incoming-ports) for full details.
164142 '';
165143 example = literalExpression ''
166144 [
···172150 user = mkOption {
173151 type = with types; nullOr str;
174152 default = null;
175175- description = ''
153153+ description = lib.mdDoc ''
176154 Override the username or UID (and optionally groupname or GID) used
177155 in the container.
178156 '';
···182160 volumes = mkOption {
183161 type = with types; listOf str;
184162 default = [];
185185- description = ''
163163+ description = lib.mdDoc ''
186164 List of volumes to attach to this container.
187165188188- Note that this is a list of <literal>"src:dst"</literal> strings to
189189- allow for <literal>src</literal> to refer to
190190- <literal>/nix/store</literal> paths, which would be difficult with an
191191- attribute set. There are also a variety of mount options available
192192- as a third field; please refer to the
193193- <link xlink:href="https://docs.docker.com/engine/reference/run/#volume-shared-filesystems">
194194- docker engine documentation</link> for details.
166166+ Note that this is a list of `"src:dst"` strings to
167167+ allow for `src` to refer to `/nix/store` paths, which
168168+ would be difficult with an attribute set. There are
169169+ also a variety of mount options available as a third
170170+ field; please refer to the
171171+ [docker engine documentation](https://docs.docker.com/engine/reference/run/#volume-shared-filesystems) for details.
195172 '';
196173 example = literalExpression ''
197174 [
···204181 workdir = mkOption {
205182 type = with types; nullOr str;
206183 default = null;
207207- description = "Override the default working directory for the container.";
184184+ description = lib.mdDoc "Override the default working directory for the container.";
208185 example = "/var/lib/hello_world";
209186 };
210187211188 dependsOn = mkOption {
212189 type = with types; listOf str;
213190 default = [];
214214- description = ''
191191+ description = lib.mdDoc ''
215192 Define which other containers this one depends on. They will be added to both After and Requires for the unit.
216193217217- Use the same name as the attribute under <literal>virtualisation.oci-containers.containers</literal>.
194194+ Use the same name as the attribute under `virtualisation.oci-containers.containers`.
218195 '';
219196 example = literalExpression ''
220197 virtualisation.oci-containers.containers = {
···229206 extraOptions = mkOption {
230207 type = with types; listOf str;
231208 default = [];
232232- description = "Extra options for <command>${defaultBackend} run</command>.";
209209+ description = lib.mdDoc "Extra options for {command}`${defaultBackend} run`.";
233210 example = literalExpression ''
234211 ["--network=host"]
235212 '';
···238215 autoStart = mkOption {
239216 type = types.bool;
240217 default = true;
241241- description = ''
218218+ description = lib.mdDoc ''
242219 When enabled, the container is automatically started on boot.
243220 If this option is set to false, the container has to be started on-demand via its service.
244221 '';
···339316 backend = mkOption {
340317 type = types.enum [ "podman" "docker" ];
341318 default = if versionAtLeast config.system.stateVersion "22.05" then "podman" else "docker";
342342- description = "The underlying Docker implementation to use.";
319319+ description = lib.mdDoc "The underlying Docker implementation to use.";
343320 };
344321345322 containers = mkOption {
346323 default = {};
347324 type = types.attrsOf (types.submodule containerOptions);
348348- description = "OCI (Docker) containers to run as systemd services.";
325325+ description = lib.mdDoc "OCI (Docker) containers to run as systemd services.";
349326 };
350327351328 };