lol

nixos/programs: invariant option docs MD conversions

pennae da37ca67 4f918385

+74 -74
+10 -10
nixos/modules/programs/atop.nix
··· 20 20 type = types.package; 21 21 default = pkgs.atop; 22 22 defaultText = literalExpression "pkgs.atop"; 23 - description = '' 23 + description = lib.mdDoc '' 24 24 Which package to use for Atop. 25 25 ''; 26 26 }; ··· 29 29 enable = mkOption { 30 30 type = types.bool; 31 31 default = false; 32 - description = '' 32 + description = lib.mdDoc '' 33 33 Whether to install and enable the netatop kernel module. 34 34 Note: this sets the kernel taint flag "O" for loading out-of-tree modules. 35 35 ''; ··· 38 38 type = types.package; 39 39 default = config.boot.kernelPackages.netatop; 40 40 defaultText = literalExpression "config.boot.kernelPackages.netatop"; 41 - description = '' 41 + description = lib.mdDoc '' 42 42 Which package to use for netatop. 43 43 ''; 44 44 }; ··· 47 47 atopgpu.enable = mkOption { 48 48 type = types.bool; 49 49 default = false; 50 - description = '' 50 + description = lib.mdDoc '' 51 51 Whether to install and enable the atopgpud daemon to get information about 52 52 NVIDIA gpus. 53 53 ''; ··· 56 56 setuidWrapper.enable = mkOption { 57 57 type = types.bool; 58 58 default = false; 59 - description = '' 59 + description = lib.mdDoc '' 60 60 Whether to install a setuid wrapper for Atop. This is required to use some of 61 61 the features as non-root user (e.g.: ipc information, netatop, atopgpu). 62 62 Atop tries to drop the root privileges shortly after starting. ··· 66 66 atopService.enable = mkOption { 67 67 type = types.bool; 68 68 default = true; 69 - description = '' 69 + description = lib.mdDoc '' 70 70 Whether to enable the atop service responsible for storing statistics for 71 71 long-term analysis. 72 72 ''; ··· 74 74 atopRotateTimer.enable = mkOption { 75 75 type = types.bool; 76 76 default = true; 77 - description = '' 77 + description = lib.mdDoc '' 78 78 Whether to enable the atop-rotate timer, which restarts the atop service 79 79 daily to make sure the data files are rotate. 80 80 ''; ··· 82 82 atopacctService.enable = mkOption { 83 83 type = types.bool; 84 84 default = true; 85 - description = '' 85 + description = lib.mdDoc '' 86 86 Whether to enable the atopacct service which manages process accounting. 87 87 This allows Atop to gather data about processes that disappeared in between 88 88 two refresh intervals. ··· 95 95 flags = "a1f"; 96 96 interval = 5; 97 97 }; 98 - description = '' 99 - Parameters to be written to <filename>/etc/atoprc</filename>. 98 + description = lib.mdDoc '' 99 + Parameters to be written to {file}`/etc/atoprc`. 100 100 ''; 101 101 }; 102 102 };
+10 -10
nixos/modules/programs/bash/bash.nix
··· 30 30 /* 31 31 enable = mkOption { 32 32 default = true; 33 - description = '' 33 + description = lib.mdDoc '' 34 34 Whenever to configure Bash as an interactive shell. 35 35 Note that this tries to make Bash the default 36 - <option>users.defaultUserShell</option>, 36 + {option}`users.defaultUserShell`, 37 37 which in turn means that you might need to explicitly 38 38 set this variable if you have another shell configured 39 39 with NixOS. ··· 44 44 45 45 shellAliases = mkOption { 46 46 default = {}; 47 - description = '' 48 - Set of aliases for bash shell, which overrides <option>environment.shellAliases</option>. 49 - See <option>environment.shellAliases</option> for an option format description. 47 + description = lib.mdDoc '' 48 + Set of aliases for bash shell, which overrides {option}`environment.shellAliases`. 49 + See {option}`environment.shellAliases` for an option format description. 50 50 ''; 51 51 type = with types; attrsOf (nullOr (either str path)); 52 52 }; 53 53 54 54 shellInit = mkOption { 55 55 default = ""; 56 - description = '' 56 + description = lib.mdDoc '' 57 57 Shell script code called during bash shell initialisation. 58 58 ''; 59 59 type = types.lines; ··· 61 61 62 62 loginShellInit = mkOption { 63 63 default = ""; 64 - description = '' 64 + description = lib.mdDoc '' 65 65 Shell script code called during login bash shell initialisation. 66 66 ''; 67 67 type = types.lines; ··· 69 69 70 70 interactiveShellInit = mkOption { 71 71 default = ""; 72 - description = '' 72 + description = lib.mdDoc '' 73 73 Shell script code called during interactive bash shell initialisation. 74 74 ''; 75 75 type = types.lines; ··· 92 92 fi 93 93 fi 94 94 ''; 95 - description = '' 95 + description = lib.mdDoc '' 96 96 Shell script code used to initialise the bash prompt. 97 97 ''; 98 98 type = types.lines; ··· 100 100 101 101 promptPluginInit = mkOption { 102 102 default = ""; 103 - description = '' 103 + description = lib.mdDoc '' 104 104 Shell script code used to initialise bash prompt plugins. 105 105 ''; 106 106 type = types.lines;
+2 -2
nixos/modules/programs/dconf.nix
··· 33 33 profiles = mkOption { 34 34 type = types.attrsOf types.path; 35 35 default = {}; 36 - description = "Set of dconf profile files, installed at <filename>/etc/dconf/profiles/<replaceable>name</replaceable></filename>."; 36 + description = lib.mdDoc "Set of dconf profile files, installed at {file}`/etc/dconf/profiles/«name»`."; 37 37 internal = true; 38 38 }; 39 39 40 40 packages = mkOption { 41 41 type = types.listOf types.package; 42 42 default = []; 43 - description = "A list of packages which provide dconf profiles and databases in <filename>/etc/dconf</filename>."; 43 + description = lib.mdDoc "A list of packages which provide dconf profiles and databases in {file}`/etc/dconf`."; 44 44 }; 45 45 }; 46 46 };
+15 -15
nixos/modules/programs/fish.nix
··· 49 49 50 50 enable = mkOption { 51 51 default = false; 52 - description = '' 52 + description = lib.mdDoc '' 53 53 Whether to configure fish as an interactive shell. 54 54 ''; 55 55 type = types.bool; ··· 58 58 useBabelfish = mkOption { 59 59 type = types.bool; 60 60 default = false; 61 - description = '' 62 - If enabled, the configured environment will be translated to native fish using <link xlink:href="https://github.com/bouk/babelfish">babelfish</link>. 63 - Otherwise, <link xlink:href="https://github.com/oh-my-fish/plugin-foreign-env">foreign-env</link> will be used. 61 + description = lib.mdDoc '' 62 + If enabled, the configured environment will be translated to native fish using [babelfish](https://github.com/bouk/babelfish). 63 + Otherwise, [foreign-env](https://github.com/oh-my-fish/plugin-foreign-env) will be used. 64 64 ''; 65 65 }; 66 66 67 67 vendor.config.enable = mkOption { 68 68 type = types.bool; 69 69 default = true; 70 - description = '' 70 + description = lib.mdDoc '' 71 71 Whether fish should source configuration snippets provided by other packages. 72 72 ''; 73 73 }; ··· 75 75 vendor.completions.enable = mkOption { 76 76 type = types.bool; 77 77 default = true; 78 - description = '' 78 + description = lib.mdDoc '' 79 79 Whether fish should use completion files provided by other packages. 80 80 ''; 81 81 }; ··· 83 83 vendor.functions.enable = mkOption { 84 84 type = types.bool; 85 85 default = true; 86 - description = '' 86 + description = lib.mdDoc '' 87 87 Whether fish should autoload fish functions provided by other packages. 88 88 ''; 89 89 }; ··· 94 94 gco = "git checkout"; 95 95 npu = "nix-prefetch-url"; 96 96 }; 97 - description = '' 97 + description = lib.mdDoc '' 98 98 Set of fish abbreviations. 99 99 ''; 100 100 type = with types; attrsOf str; ··· 102 102 103 103 shellAliases = mkOption { 104 104 default = {}; 105 - description = '' 106 - Set of aliases for fish shell, which overrides <option>environment.shellAliases</option>. 107 - See <option>environment.shellAliases</option> for an option format description. 105 + description = lib.mdDoc '' 106 + Set of aliases for fish shell, which overrides {option}`environment.shellAliases`. 107 + See {option}`environment.shellAliases` for an option format description. 108 108 ''; 109 109 type = with types; attrsOf (nullOr (either str path)); 110 110 }; 111 111 112 112 shellInit = mkOption { 113 113 default = ""; 114 - description = '' 114 + description = lib.mdDoc '' 115 115 Shell script code called during fish shell initialisation. 116 116 ''; 117 117 type = types.lines; ··· 119 119 120 120 loginShellInit = mkOption { 121 121 default = ""; 122 - description = '' 122 + description = lib.mdDoc '' 123 123 Shell script code called during fish login shell initialisation. 124 124 ''; 125 125 type = types.lines; ··· 127 127 128 128 interactiveShellInit = mkOption { 129 129 default = ""; 130 - description = '' 130 + description = lib.mdDoc '' 131 131 Shell script code called during interactive fish shell initialisation. 132 132 ''; 133 133 type = types.lines; ··· 135 135 136 136 promptInit = mkOption { 137 137 default = ""; 138 - description = '' 138 + description = lib.mdDoc '' 139 139 Shell script code used to initialise fish prompt. 140 140 ''; 141 141 type = types.lines;
+10 -10
nixos/modules/programs/less.nix
··· 41 41 type = types.nullOr types.path; 42 42 default = null; 43 43 example = literalExpression ''"''${pkgs.my-configs}/lesskey"''; 44 - description = '' 44 + description = lib.mdDoc '' 45 45 Path to lesskey configuration file. 46 46 47 - <option>configFile</option> takes precedence over <option>commands</option>, 48 - <option>clearDefaultCommands</option>, <option>lineEditingKeys</option>, and 49 - <option>envVariables</option>. 47 + {option}`configFile` takes precedence over {option}`commands`, 48 + {option}`clearDefaultCommands`, {option}`lineEditingKeys`, and 49 + {option}`envVariables`. 50 50 ''; 51 51 }; 52 52 ··· 57 57 h = "noaction 5\\e("; 58 58 l = "noaction 5\\e)"; 59 59 }; 60 - description = "Defines new command keys."; 60 + description = lib.mdDoc "Defines new command keys."; 61 61 }; 62 62 63 63 clearDefaultCommands = mkOption { 64 64 type = types.bool; 65 65 default = false; 66 - description = '' 66 + description = lib.mdDoc '' 67 67 Clear all default commands. 68 68 You should remember to set the quit key. 69 69 Otherwise you will not be able to leave less without killing it. ··· 76 76 example = { 77 77 e = "abort"; 78 78 }; 79 - description = "Defines new line-editing keys."; 79 + description = lib.mdDoc "Defines new line-editing keys."; 80 80 }; 81 81 82 82 envVariables = mkOption { ··· 87 87 example = { 88 88 LESS = "--quit-if-one-screen"; 89 89 }; 90 - description = "Defines environment variables."; 90 + description = lib.mdDoc "Defines environment variables."; 91 91 }; 92 92 93 93 lessopen = mkOption { 94 94 type = types.nullOr types.str; 95 95 default = "|${pkgs.lesspipe}/bin/lesspipe.sh %s"; 96 96 defaultText = literalExpression ''"|''${pkgs.lesspipe}/bin/lesspipe.sh %s"''; 97 - description = '' 97 + description = lib.mdDoc '' 98 98 Before less opens a file, it first gives your input preprocessor a chance to modify the way the contents of the file are displayed. 99 99 ''; 100 100 }; ··· 102 102 lessclose = mkOption { 103 103 type = types.nullOr types.str; 104 104 default = null; 105 - description = '' 105 + description = lib.mdDoc '' 106 106 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). 107 107 ''; 108 108 };
+3 -3
nixos/modules/programs/nano.nix
··· 14 14 nanorc = lib.mkOption { 15 15 type = lib.types.lines; 16 16 default = ""; 17 - description = '' 17 + description = lib.mdDoc '' 18 18 The system-wide nano configuration. 19 - See <citerefentry><refentrytitle>nanorc</refentrytitle><manvolnum>5</manvolnum></citerefentry>. 19 + See {manpage}`nanorc(5)`. 20 20 ''; 21 21 example = '' 22 22 set nowrap ··· 27 27 syntaxHighlight = lib.mkOption { 28 28 type = lib.types.bool; 29 29 default = true; 30 - description = "Whether to enable syntax highlight for various languages."; 30 + description = lib.mdDoc "Whether to enable syntax highlight for various languages."; 31 31 }; 32 32 }; 33 33 };
+17 -17
nixos/modules/programs/proxychains.nix
··· 26 26 27 27 type = mkOption { 28 28 type = types.enum [ "http" "socks4" "socks5" ]; 29 - description = "Proxy type."; 29 + description = lib.mdDoc "Proxy type."; 30 30 }; 31 31 32 32 host = mkOption { 33 33 type = types.str; 34 - description = "Proxy host or IP address."; 34 + description = lib.mdDoc "Proxy host or IP address."; 35 35 }; 36 36 37 37 port = mkOption { 38 38 type = types.port; 39 - description = "Proxy port"; 39 + description = lib.mdDoc "Proxy port"; 40 40 }; 41 41 }; 42 42 }; ··· 55 55 type = mkOption { 56 56 type = types.enum [ "dynamic" "strict" "random" ]; 57 57 default = "strict"; 58 - description = '' 59 - <literal>dynamic</literal> - Each connection will be done via chained proxies 58 + description = lib.mdDoc '' 59 + `dynamic` - Each connection will be done via chained proxies 60 60 all proxies chained in the order as they appear in the list 61 61 at least one proxy must be online to play in chain 62 62 (dead proxies are skipped) 63 - otherwise <literal>EINTR</literal> is returned to the app. 63 + otherwise `EINTR` is returned to the app. 64 64 65 - <literal>strict</literal> - Each connection will be done via chained proxies 65 + `strict` - Each connection will be done via chained proxies 66 66 all proxies chained in the order as they appear in the list 67 67 all proxies must be online to play in chain 68 - otherwise <literal>EINTR</literal> is returned to the app. 68 + otherwise `EINTR` is returned to the app. 69 69 70 - <literal>random</literal> - Each connection will be done via random proxy 71 - (or proxy chain, see <option>programs.proxychains.chain.length</option>) from the list. 70 + `random` - Each connection will be done via random proxy 71 + (or proxy chain, see {option}`programs.proxychains.chain.length`) from the list. 72 72 ''; 73 73 }; 74 74 length = mkOption { 75 75 type = types.nullOr types.int; 76 76 default = null; 77 - description = '' 77 + description = lib.mdDoc '' 78 78 Chain length for random chain. 79 79 ''; 80 80 }; ··· 83 83 proxyDNS = mkOption { 84 84 type = types.bool; 85 85 default = true; 86 - description = "Proxy DNS requests - no leak for DNS data."; 86 + description = lib.mdDoc "Proxy DNS requests - no leak for DNS data."; 87 87 }; 88 88 89 89 quietMode = mkEnableOption "Quiet mode (no output from the library)."; ··· 91 91 remoteDNSSubnet = mkOption { 92 92 type = types.enum [ 10 127 224 ]; 93 93 default = 224; 94 - description = '' 94 + description = lib.mdDoc '' 95 95 Set the class A subnet number to use for the internal remote DNS mapping, uses the reserved 224.x.x.x range by default. 96 96 ''; 97 97 }; ··· 99 99 tcpReadTimeOut = mkOption { 100 100 type = types.int; 101 101 default = 15000; 102 - description = "Connection read time-out in milliseconds."; 102 + description = lib.mdDoc "Connection read time-out in milliseconds."; 103 103 }; 104 104 105 105 tcpConnectTimeOut = mkOption { 106 106 type = types.int; 107 107 default = 8000; 108 - description = "Connection time-out in milliseconds."; 108 + description = lib.mdDoc "Connection time-out in milliseconds."; 109 109 }; 110 110 111 111 localnet = mkOption { 112 112 type = types.str; 113 113 default = "127.0.0.0/255.0.0.0"; 114 - description = "By default enable localnet for loopback address ranges."; 114 + description = lib.mdDoc "By default enable localnet for loopback address ranges."; 115 115 }; 116 116 117 117 proxies = mkOption { 118 118 type = types.attrsOf (types.submodule proxyOptions); 119 - description = '' 119 + description = lib.mdDoc '' 120 120 Proxies to be used by proxychains. 121 121 ''; 122 122
+5 -5
nixos/modules/programs/spacefm.nix
··· 17 17 enable = mkOption { 18 18 type = types.bool; 19 19 default = false; 20 - description = '' 21 - Whether to install SpaceFM and create <filename>/etc/spacefm/spacefm.conf</filename>. 20 + description = lib.mdDoc '' 21 + Whether to install SpaceFM and create {file}`/etc/spacefm/spacefm.conf`. 22 22 ''; 23 23 }; 24 24 ··· 34 34 terminal_su = "''${pkgs.sudo}/bin/sudo"; 35 35 } 36 36 ''; 37 - description = '' 37 + description = lib.mdDoc '' 38 38 The system-wide spacefm configuration. 39 - Parameters to be written to <filename>/etc/spacefm/spacefm.conf</filename>. 40 - Refer to the <link xlink:href="https://ignorantguru.github.io/spacefm/spacefm-manual-en.html#programfiles-etc">relevant entry</link> in the SpaceFM manual. 39 + Parameters to be written to {file}`/etc/spacefm/spacefm.conf`. 40 + Refer to the [relevant entry](https://ignorantguru.github.io/spacefm/spacefm-manual-en.html#programfiles-etc) in the SpaceFM manual. 41 41 ''; 42 42 }; 43 43
+2 -2
nixos/modules/programs/starship.nix
··· 16 16 settings = mkOption { 17 17 inherit (settingsFormat) type; 18 18 default = { }; 19 - description = '' 20 - Configuration included in <literal>starship.toml</literal>. 19 + description = lib.mdDoc '' 20 + Configuration included in `starship.toml`. 21 21 22 22 See https://starship.rs/config/#prompt for documentation. 23 23 '';