···2020 type = types.package;
2121 default = pkgs.atop;
2222 defaultText = literalExpression "pkgs.atop";
2323- description = ''
2323+ description = lib.mdDoc ''
2424 Which package to use for Atop.
2525 '';
2626 };
···2929 enable = mkOption {
3030 type = types.bool;
3131 default = false;
3232- description = ''
3232+ description = lib.mdDoc ''
3333 Whether to install and enable the netatop kernel module.
3434 Note: this sets the kernel taint flag "O" for loading out-of-tree modules.
3535 '';
···3838 type = types.package;
3939 default = config.boot.kernelPackages.netatop;
4040 defaultText = literalExpression "config.boot.kernelPackages.netatop";
4141- description = ''
4141+ description = lib.mdDoc ''
4242 Which package to use for netatop.
4343 '';
4444 };
···4747 atopgpu.enable = mkOption {
4848 type = types.bool;
4949 default = false;
5050- description = ''
5050+ description = lib.mdDoc ''
5151 Whether to install and enable the atopgpud daemon to get information about
5252 NVIDIA gpus.
5353 '';
···5656 setuidWrapper.enable = mkOption {
5757 type = types.bool;
5858 default = false;
5959- description = ''
5959+ description = lib.mdDoc ''
6060 Whether to install a setuid wrapper for Atop. This is required to use some of
6161 the features as non-root user (e.g.: ipc information, netatop, atopgpu).
6262 Atop tries to drop the root privileges shortly after starting.
···6666 atopService.enable = mkOption {
6767 type = types.bool;
6868 default = true;
6969- description = ''
6969+ description = lib.mdDoc ''
7070 Whether to enable the atop service responsible for storing statistics for
7171 long-term analysis.
7272 '';
···7474 atopRotateTimer.enable = mkOption {
7575 type = types.bool;
7676 default = true;
7777- description = ''
7777+ description = lib.mdDoc ''
7878 Whether to enable the atop-rotate timer, which restarts the atop service
7979 daily to make sure the data files are rotate.
8080 '';
···8282 atopacctService.enable = mkOption {
8383 type = types.bool;
8484 default = true;
8585- description = ''
8585+ description = lib.mdDoc ''
8686 Whether to enable the atopacct service which manages process accounting.
8787 This allows Atop to gather data about processes that disappeared in between
8888 two refresh intervals.
···9595 flags = "a1f";
9696 interval = 5;
9797 };
9898- description = ''
9999- Parameters to be written to <filename>/etc/atoprc</filename>.
9898+ description = lib.mdDoc ''
9999+ Parameters to be written to {file}`/etc/atoprc`.
100100 '';
101101 };
102102 };
+10-10
nixos/modules/programs/bash/bash.nix
···3030 /*
3131 enable = mkOption {
3232 default = true;
3333- description = ''
3333+ description = lib.mdDoc ''
3434 Whenever to configure Bash as an interactive shell.
3535 Note that this tries to make Bash the default
3636- <option>users.defaultUserShell</option>,
3636+ {option}`users.defaultUserShell`,
3737 which in turn means that you might need to explicitly
3838 set this variable if you have another shell configured
3939 with NixOS.
···44444545 shellAliases = mkOption {
4646 default = {};
4747- description = ''
4848- Set of aliases for bash shell, which overrides <option>environment.shellAliases</option>.
4949- See <option>environment.shellAliases</option> for an option format description.
4747+ description = lib.mdDoc ''
4848+ Set of aliases for bash shell, which overrides {option}`environment.shellAliases`.
4949+ See {option}`environment.shellAliases` for an option format description.
5050 '';
5151 type = with types; attrsOf (nullOr (either str path));
5252 };
53535454 shellInit = mkOption {
5555 default = "";
5656- description = ''
5656+ description = lib.mdDoc ''
5757 Shell script code called during bash shell initialisation.
5858 '';
5959 type = types.lines;
···61616262 loginShellInit = mkOption {
6363 default = "";
6464- description = ''
6464+ description = lib.mdDoc ''
6565 Shell script code called during login bash shell initialisation.
6666 '';
6767 type = types.lines;
···69697070 interactiveShellInit = mkOption {
7171 default = "";
7272- description = ''
7272+ description = lib.mdDoc ''
7373 Shell script code called during interactive bash shell initialisation.
7474 '';
7575 type = types.lines;
···9292 fi
9393 fi
9494 '';
9595- description = ''
9595+ description = lib.mdDoc ''
9696 Shell script code used to initialise the bash prompt.
9797 '';
9898 type = types.lines;
···100100101101 promptPluginInit = mkOption {
102102 default = "";
103103- description = ''
103103+ description = lib.mdDoc ''
104104 Shell script code used to initialise bash prompt plugins.
105105 '';
106106 type = types.lines;
+2-2
nixos/modules/programs/dconf.nix
···3333 profiles = mkOption {
3434 type = types.attrsOf types.path;
3535 default = {};
3636- description = "Set of dconf profile files, installed at <filename>/etc/dconf/profiles/<replaceable>name</replaceable></filename>.";
3636+ description = lib.mdDoc "Set of dconf profile files, installed at {file}`/etc/dconf/profiles/«name»`.";
3737 internal = true;
3838 };
39394040 packages = mkOption {
4141 type = types.listOf types.package;
4242 default = [];
4343- description = "A list of packages which provide dconf profiles and databases in <filename>/etc/dconf</filename>.";
4343+ description = lib.mdDoc "A list of packages which provide dconf profiles and databases in {file}`/etc/dconf`.";
4444 };
4545 };
4646 };
+15-15
nixos/modules/programs/fish.nix
···49495050 enable = mkOption {
5151 default = false;
5252- description = ''
5252+ description = lib.mdDoc ''
5353 Whether to configure fish as an interactive shell.
5454 '';
5555 type = types.bool;
···5858 useBabelfish = mkOption {
5959 type = types.bool;
6060 default = false;
6161- description = ''
6262- If enabled, the configured environment will be translated to native fish using <link xlink:href="https://github.com/bouk/babelfish">babelfish</link>.
6363- Otherwise, <link xlink:href="https://github.com/oh-my-fish/plugin-foreign-env">foreign-env</link> will be used.
6161+ description = lib.mdDoc ''
6262+ If enabled, the configured environment will be translated to native fish using [babelfish](https://github.com/bouk/babelfish).
6363+ Otherwise, [foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) will be used.
6464 '';
6565 };
66666767 vendor.config.enable = mkOption {
6868 type = types.bool;
6969 default = true;
7070- description = ''
7070+ description = lib.mdDoc ''
7171 Whether fish should source configuration snippets provided by other packages.
7272 '';
7373 };
···7575 vendor.completions.enable = mkOption {
7676 type = types.bool;
7777 default = true;
7878- description = ''
7878+ description = lib.mdDoc ''
7979 Whether fish should use completion files provided by other packages.
8080 '';
8181 };
···8383 vendor.functions.enable = mkOption {
8484 type = types.bool;
8585 default = true;
8686- description = ''
8686+ description = lib.mdDoc ''
8787 Whether fish should autoload fish functions provided by other packages.
8888 '';
8989 };
···9494 gco = "git checkout";
9595 npu = "nix-prefetch-url";
9696 };
9797- description = ''
9797+ description = lib.mdDoc ''
9898 Set of fish abbreviations.
9999 '';
100100 type = with types; attrsOf str;
···102102103103 shellAliases = mkOption {
104104 default = {};
105105- description = ''
106106- Set of aliases for fish shell, which overrides <option>environment.shellAliases</option>.
107107- See <option>environment.shellAliases</option> for an option format description.
105105+ description = lib.mdDoc ''
106106+ Set of aliases for fish shell, which overrides {option}`environment.shellAliases`.
107107+ See {option}`environment.shellAliases` for an option format description.
108108 '';
109109 type = with types; attrsOf (nullOr (either str path));
110110 };
111111112112 shellInit = mkOption {
113113 default = "";
114114- description = ''
114114+ description = lib.mdDoc ''
115115 Shell script code called during fish shell initialisation.
116116 '';
117117 type = types.lines;
···119119120120 loginShellInit = mkOption {
121121 default = "";
122122- description = ''
122122+ description = lib.mdDoc ''
123123 Shell script code called during fish login shell initialisation.
124124 '';
125125 type = types.lines;
···127127128128 interactiveShellInit = mkOption {
129129 default = "";
130130- description = ''
130130+ description = lib.mdDoc ''
131131 Shell script code called during interactive fish shell initialisation.
132132 '';
133133 type = types.lines;
···135135136136 promptInit = mkOption {
137137 default = "";
138138- description = ''
138138+ description = lib.mdDoc ''
139139 Shell script code used to initialise fish prompt.
140140 '';
141141 type = types.lines;
+10-10
nixos/modules/programs/less.nix
···4141 type = types.nullOr types.path;
4242 default = null;
4343 example = literalExpression ''"''${pkgs.my-configs}/lesskey"'';
4444- description = ''
4444+ description = lib.mdDoc ''
4545 Path to lesskey configuration file.
46464747- <option>configFile</option> takes precedence over <option>commands</option>,
4848- <option>clearDefaultCommands</option>, <option>lineEditingKeys</option>, and
4949- <option>envVariables</option>.
4747+ {option}`configFile` takes precedence over {option}`commands`,
4848+ {option}`clearDefaultCommands`, {option}`lineEditingKeys`, and
4949+ {option}`envVariables`.
5050 '';
5151 };
5252···5757 h = "noaction 5\\e(";
5858 l = "noaction 5\\e)";
5959 };
6060- description = "Defines new command keys.";
6060+ description = lib.mdDoc "Defines new command keys.";
6161 };
62626363 clearDefaultCommands = mkOption {
6464 type = types.bool;
6565 default = false;
6666- description = ''
6666+ description = lib.mdDoc ''
6767 Clear all default commands.
6868 You should remember to set the quit key.
6969 Otherwise you will not be able to leave less without killing it.
···7676 example = {
7777 e = "abort";
7878 };
7979- description = "Defines new line-editing keys.";
7979+ description = lib.mdDoc "Defines new line-editing keys.";
8080 };
81818282 envVariables = mkOption {
···8787 example = {
8888 LESS = "--quit-if-one-screen";
8989 };
9090- description = "Defines environment variables.";
9090+ description = lib.mdDoc "Defines environment variables.";
9191 };
92929393 lessopen = mkOption {
9494 type = types.nullOr types.str;
9595 default = "|${pkgs.lesspipe}/bin/lesspipe.sh %s";
9696 defaultText = literalExpression ''"|''${pkgs.lesspipe}/bin/lesspipe.sh %s"'';
9797- description = ''
9797+ description = lib.mdDoc ''
9898 Before less opens a file, it first gives your input preprocessor a chance to modify the way the contents of the file are displayed.
9999 '';
100100 };
···102102 lessclose = mkOption {
103103 type = types.nullOr types.str;
104104 default = null;
105105- description = ''
105105+ description = lib.mdDoc ''
106106 When less closes a file opened in such a way, it will call another program, called the input postprocessor, which may perform any desired clean-up action (such as deleting the replacement file created by LESSOPEN).
107107 '';
108108 };
+3-3
nixos/modules/programs/nano.nix
···1414 nanorc = lib.mkOption {
1515 type = lib.types.lines;
1616 default = "";
1717- description = ''
1717+ description = lib.mdDoc ''
1818 The system-wide nano configuration.
1919- See <citerefentry><refentrytitle>nanorc</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
1919+ See {manpage}`nanorc(5)`.
2020 '';
2121 example = ''
2222 set nowrap
···2727 syntaxHighlight = lib.mkOption {
2828 type = lib.types.bool;
2929 default = true;
3030- description = "Whether to enable syntax highlight for various languages.";
3030+ description = lib.mdDoc "Whether to enable syntax highlight for various languages.";
3131 };
3232 };
3333 };
+17-17
nixos/modules/programs/proxychains.nix
···26262727 type = mkOption {
2828 type = types.enum [ "http" "socks4" "socks5" ];
2929- description = "Proxy type.";
2929+ description = lib.mdDoc "Proxy type.";
3030 };
31313232 host = mkOption {
3333 type = types.str;
3434- description = "Proxy host or IP address.";
3434+ description = lib.mdDoc "Proxy host or IP address.";
3535 };
36363737 port = mkOption {
3838 type = types.port;
3939- description = "Proxy port";
3939+ description = lib.mdDoc "Proxy port";
4040 };
4141 };
4242 };
···5555 type = mkOption {
5656 type = types.enum [ "dynamic" "strict" "random" ];
5757 default = "strict";
5858- description = ''
5959- <literal>dynamic</literal> - Each connection will be done via chained proxies
5858+ description = lib.mdDoc ''
5959+ `dynamic` - Each connection will be done via chained proxies
6060 all proxies chained in the order as they appear in the list
6161 at least one proxy must be online to play in chain
6262 (dead proxies are skipped)
6363- otherwise <literal>EINTR</literal> is returned to the app.
6363+ otherwise `EINTR` is returned to the app.
64646565- <literal>strict</literal> - Each connection will be done via chained proxies
6565+ `strict` - Each connection will be done via chained proxies
6666 all proxies chained in the order as they appear in the list
6767 all proxies must be online to play in chain
6868- otherwise <literal>EINTR</literal> is returned to the app.
6868+ otherwise `EINTR` is returned to the app.
69697070- <literal>random</literal> - Each connection will be done via random proxy
7171- (or proxy chain, see <option>programs.proxychains.chain.length</option>) from the list.
7070+ `random` - Each connection will be done via random proxy
7171+ (or proxy chain, see {option}`programs.proxychains.chain.length`) from the list.
7272 '';
7373 };
7474 length = mkOption {
7575 type = types.nullOr types.int;
7676 default = null;
7777- description = ''
7777+ description = lib.mdDoc ''
7878 Chain length for random chain.
7979 '';
8080 };
···8383 proxyDNS = mkOption {
8484 type = types.bool;
8585 default = true;
8686- description = "Proxy DNS requests - no leak for DNS data.";
8686+ description = lib.mdDoc "Proxy DNS requests - no leak for DNS data.";
8787 };
88888989 quietMode = mkEnableOption "Quiet mode (no output from the library).";
···9191 remoteDNSSubnet = mkOption {
9292 type = types.enum [ 10 127 224 ];
9393 default = 224;
9494- description = ''
9494+ description = lib.mdDoc ''
9595 Set the class A subnet number to use for the internal remote DNS mapping, uses the reserved 224.x.x.x range by default.
9696 '';
9797 };
···9999 tcpReadTimeOut = mkOption {
100100 type = types.int;
101101 default = 15000;
102102- description = "Connection read time-out in milliseconds.";
102102+ description = lib.mdDoc "Connection read time-out in milliseconds.";
103103 };
104104105105 tcpConnectTimeOut = mkOption {
106106 type = types.int;
107107 default = 8000;
108108- description = "Connection time-out in milliseconds.";
108108+ description = lib.mdDoc "Connection time-out in milliseconds.";
109109 };
110110111111 localnet = mkOption {
112112 type = types.str;
113113 default = "127.0.0.0/255.0.0.0";
114114- description = "By default enable localnet for loopback address ranges.";
114114+ description = lib.mdDoc "By default enable localnet for loopback address ranges.";
115115 };
116116117117 proxies = mkOption {
118118 type = types.attrsOf (types.submodule proxyOptions);
119119- description = ''
119119+ description = lib.mdDoc ''
120120 Proxies to be used by proxychains.
121121 '';
122122
+5-5
nixos/modules/programs/spacefm.nix
···1717 enable = mkOption {
1818 type = types.bool;
1919 default = false;
2020- description = ''
2121- Whether to install SpaceFM and create <filename>/etc/spacefm/spacefm.conf</filename>.
2020+ description = lib.mdDoc ''
2121+ Whether to install SpaceFM and create {file}`/etc/spacefm/spacefm.conf`.
2222 '';
2323 };
2424···3434 terminal_su = "''${pkgs.sudo}/bin/sudo";
3535 }
3636 '';
3737- description = ''
3737+ description = lib.mdDoc ''
3838 The system-wide spacefm configuration.
3939- Parameters to be written to <filename>/etc/spacefm/spacefm.conf</filename>.
4040- Refer to the <link xlink:href="https://ignorantguru.github.io/spacefm/spacefm-manual-en.html#programfiles-etc">relevant entry</link> in the SpaceFM manual.
3939+ Parameters to be written to {file}`/etc/spacefm/spacefm.conf`.
4040+ Refer to the [relevant entry](https://ignorantguru.github.io/spacefm/spacefm-manual-en.html#programfiles-etc) in the SpaceFM manual.
4141 '';
4242 };
4343
+2-2
nixos/modules/programs/starship.nix
···1616 settings = mkOption {
1717 inherit (settingsFormat) type;
1818 default = { };
1919- description = ''
2020- Configuration included in <literal>starship.toml</literal>.
1919+ description = lib.mdDoc ''
2020+ Configuration included in `starship.toml`.
21212222 See https://starship.rs/config/#prompt for documentation.
2323 '';