lol

nixos/*: convert internal option descriptions to MD

we'll have to do it eventually, may as well be now.

pennae 95471232 ef176dcf

+116 -116
+2 -2
nixos/lib/systemd-unit-options.nix
··· 94 94 95 95 unit = mkOption { 96 96 internal = true; 97 - description = "The generated unit."; 97 + description = lib.mdDoc "The generated unit."; 98 98 }; 99 99 100 100 }; ··· 358 358 jobScripts = mkOption { 359 359 type = with types; coercedTo path singleton (listOf path); 360 360 internal = true; 361 - description = "A list of all job script derivations of this unit."; 361 + description = lib.mdDoc "A list of all job script derivations of this unit."; 362 362 default = []; 363 363 }; 364 364
+1 -1
nixos/modules/config/fonts/fontconfig.nix
··· 259 259 internal = true; 260 260 type = with types; listOf path; 261 261 default = [ ]; 262 - description = '' 262 + description = lib.mdDoc '' 263 263 Fontconfig configuration packages. 264 264 ''; 265 265 };
+1 -1
nixos/modules/config/networking.nix
··· 141 141 type = types.attrs; 142 142 internal = true; 143 143 default = {}; 144 - description = '' 144 + description = lib.mdDoc '' 145 145 Environment variables used for the network proxy. 146 146 ''; 147 147 };
+2 -2
nixos/modules/config/shells-environment.nix
··· 140 140 example = literalExpression ''"''${pkgs.dash}/bin/dash"''; 141 141 type = types.path; 142 142 visible = false; 143 - description = '' 143 + description = lib.mdDoc '' 144 144 The shell executable that is linked system-wide to 145 - <literal>/bin/sh</literal>. Please note that NixOS assumes all 145 + `/bin/sh`. Please note that NixOS assumes all 146 146 over the place that shell to be Bash, so override the default 147 147 setting only if you know exactly what you're doing. 148 148 '';
+1 -1
nixos/modules/config/system-path.nix
··· 132 132 133 133 path = mkOption { 134 134 internal = true; 135 - description = '' 135 + description = lib.mdDoc '' 136 136 The packages you want in the boot environment. 137 137 ''; 138 138 };
+3 -3
nixos/modules/config/xdg/portal.nix
··· 54 54 type = types.bool; 55 55 visible = false; 56 56 default = false; 57 - description = '' 58 - Sets environment variable <literal>GTK_USE_PORTAL</literal> to <literal>1</literal>. 57 + description = lib.mdDoc '' 58 + Sets environment variable `GTK_USE_PORTAL` to `1`. 59 59 This will force GTK-based programs ran outside Flatpak to respect and use XDG Desktop Portals 60 60 for features like file chooser but it is an unsupported hack that can easily break things. 61 - Defaults to <literal>false</literal> to respect its opt-in nature. 61 + Defaults to `false` to respect its opt-in nature. 62 62 ''; 63 63 }; 64 64 };
+1 -1
nixos/modules/hardware/device-tree.nix
··· 171 171 default = null; 172 172 type = types.nullOr types.path; 173 173 internal = true; 174 - description = '' 174 + description = lib.mdDoc '' 175 175 A path containing the result of applying `overlays` to `kernelPackage`. 176 176 ''; 177 177 };
+6 -6
nixos/modules/hardware/opengl.nix
··· 71 71 package = mkOption { 72 72 type = types.package; 73 73 internal = true; 74 - description = '' 74 + description = lib.mdDoc '' 75 75 The package that provides the OpenGL implementation. 76 76 ''; 77 77 }; ··· 79 79 package32 = mkOption { 80 80 type = types.package; 81 81 internal = true; 82 - description = '' 82 + description = lib.mdDoc '' 83 83 The package that provides the 32-bit OpenGL implementation on 84 - 64-bit systems. Used when <option>driSupport32Bit</option> is 84 + 64-bit systems. Used when {option}`driSupport32Bit` is 85 85 set. 86 86 ''; 87 87 }; ··· 111 111 type = types.bool; 112 112 internal = true; 113 113 default = false; 114 - description = '' 115 - Whether the <literal>LD_LIBRARY_PATH</literal> environment variable 114 + description = lib.mdDoc '' 115 + Whether the `LD_LIBRARY_PATH` environment variable 116 116 should be set to the locations of driver libraries. Drivers which 117 117 rely on overriding libraries should set this to true. Drivers which 118 - support <literal>libglvnd</literal> and other dispatch libraries 118 + support `libglvnd` and other dispatch libraries 119 119 instead of overriding libraries should not set this. 120 120 ''; 121 121 };
+1 -1
nixos/modules/i18n/input-method/default.nix
··· 53 53 internal = true; 54 54 type = types.nullOr types.path; 55 55 default = null; 56 - description = '' 56 + description = lib.mdDoc '' 57 57 The input method method package. 58 58 ''; 59 59 };
+2 -2
nixos/modules/misc/assertions.nix
··· 11 11 internal = true; 12 12 default = []; 13 13 example = [ { assertion = false; message = "you can't enable this for that reason"; } ]; 14 - description = '' 14 + description = lib.mdDoc '' 15 15 This option allows modules to express conditions that must 16 16 hold for the evaluation of the system configuration to 17 17 succeed, along with associated error messages for the user. ··· 23 23 default = []; 24 24 type = types.listOf types.str; 25 25 example = [ "The `foo' service is deprecated and will go away soon!" ]; 26 - description = '' 26 + description = lib.mdDoc '' 27 27 This option allows modules to show warnings to users during 28 28 the evaluation of the system configuration. 29 29 '';
+2 -2
nixos/modules/misc/ids.nix
··· 19 19 20 20 ids.uids = lib.mkOption { 21 21 internal = true; 22 - description = '' 22 + description = lib.mdDoc '' 23 23 The user IDs used in NixOS. 24 24 ''; 25 25 type = types.attrsOf types.int; ··· 27 27 28 28 ids.gids = lib.mkOption { 29 29 internal = true; 30 - description = '' 30 + description = lib.mdDoc '' 31 31 The group IDs used in NixOS. 32 32 ''; 33 33 type = types.attrsOf types.int;
+3 -3
nixos/modules/misc/meta.nix
··· 38 38 internal = true; 39 39 default = []; 40 40 example = literalExpression ''[ lib.maintainers.all ]''; 41 - description = '' 41 + description = lib.mdDoc '' 42 42 List of maintainers of each module. This option should be defined at 43 43 most once per module. 44 44 ''; ··· 48 48 type = docFile; 49 49 internal = true; 50 50 example = "./meta.chapter.xml"; 51 - description = '' 51 + description = lib.mdDoc '' 52 52 Documentation prologue for the set of options of each module. This 53 53 option should be defined at most once per module. 54 54 ''; ··· 60 60 }; 61 61 internal = true; 62 62 default = true; 63 - description = '' 63 + description = lib.mdDoc '' 64 64 Whether to include this module in the split options doc build. 65 65 Disable if the module references `config`, `pkgs` or other module 66 66 arguments that cannot be evaluated as constants.
+1 -1
nixos/modules/misc/passthru.nix
··· 7 7 options = { 8 8 passthru = lib.mkOption { 9 9 visible = false; 10 - description = '' 10 + description = lib.mdDoc '' 11 11 This attribute set will be exported as a system attribute. 12 12 You can put whatever you want here. 13 13 '';
+1 -1
nixos/modules/programs/neovim.nix
··· 89 89 type = types.package; 90 90 visible = false; 91 91 readOnly = true; 92 - description = "Resulting customized neovim package."; 92 + description = lib.mdDoc "Resulting customized neovim package."; 93 93 }; 94 94 95 95 runtime = mkOption {
+1 -1
nixos/modules/programs/tsm-client.nix
··· 140 140 type = str; 141 141 internal = true; 142 142 visible = false; 143 - description = "Server stanza text generated from the options."; 143 + description = lib.mdDoc "Server stanza text generated from the options."; 144 144 }; 145 145 config.name = mkDefault name; 146 146 # Client system-options file directives are explained here:
+1 -1
nixos/modules/security/wrappers/default.nix
··· 199 199 type = lib.types.path; 200 200 default = "/run/wrappers/bin"; 201 201 internal = true; 202 - description = '' 202 + description = lib.mdDoc '' 203 203 This option defines the path to the wrapper programs. It 204 204 should not be overriden. 205 205 '';
+1 -1
nixos/modules/services/audio/jack.nix
··· 27 27 default = pkgs.jack2; 28 28 defaultText = literalExpression "pkgs.jack2"; 29 29 example = literalExpression "pkgs.jack1"; 30 - description = '' 30 + description = lib.mdDoc '' 31 31 The JACK package to use. 32 32 ''; 33 33 };
+3 -3
nixos/modules/services/cluster/hadoop/default.nix
··· 25 25 default = {}; 26 26 type = types.attrsOf types.anything; 27 27 internal = true; 28 - description = '' 28 + description = lib.mdDoc '' 29 29 Internal option to add configs to core-site.xml based on module options 30 30 ''; 31 31 }; ··· 59 59 default = {}; 60 60 type = types.attrsOf types.anything; 61 61 internal = true; 62 - description = '' 62 + description = lib.mdDoc '' 63 63 Internal option to add configs to hdfs-site.xml based on module options 64 64 ''; 65 65 }; ··· 134 134 default = {}; 135 135 type = types.attrsOf types.anything; 136 136 internal = true; 137 - description = '' 137 + description = lib.mdDoc '' 138 138 Internal option to add configs to yarn-site.xml based on module options 139 139 ''; 140 140 };
+1 -1
nixos/modules/services/cluster/hadoop/hbase.nix
··· 39 39 default = {}; 40 40 type = with types; attrsOf anything; 41 41 internal = true; 42 - description = '' 42 + description = lib.mdDoc '' 43 43 Internal option to add configs to hbase-site.xml based on module options 44 44 ''; 45 45 };
+1 -1
nixos/modules/services/computing/slurm/slurm.nix
··· 285 285 Directory created from generated config files and 286 286 `config.${opt.extraConfigPaths}`. 287 287 ''; 288 - description = '' 288 + description = lib.mdDoc '' 289 289 Path to directory with slurm config files. This option is set by default from the 290 290 Slurm module and is meant to make the Slurm config file available to other modules. 291 291 '';
+1 -1
nixos/modules/services/continuous-integration/hercules-ci-agent/common.nix
··· 236 236 type = types.path; 237 237 internal = true; 238 238 defaultText = literalMD "generated `hercules-ci-agent.toml`"; 239 - description = '' 239 + description = lib.mdDoc '' 240 240 The fully assembled config file. 241 241 ''; 242 242 };
+1 -1
nixos/modules/services/databases/neo4j.nix
··· 538 538 type = types.listOf types.path; 539 539 internal = true; 540 540 readOnly = true; 541 - description = '' 541 + description = lib.mdDoc '' 542 542 Directories of this policy that will be created automatically 543 543 when the certificates directory is left at its default value. 544 544 This includes all options of type path that are left at their
+1 -1
nixos/modules/services/databases/postgresql.nix
··· 264 264 default = "postgres"; 265 265 internal = true; 266 266 readOnly = true; 267 - description = '' 267 + description = lib.mdDoc '' 268 268 PostgreSQL superuser account to use for various operations. Internal since changing 269 269 this value would lead to breakage while setting up databases. 270 270 '';
+1 -1
nixos/modules/services/desktops/gnome/tracker.nix
··· 40 40 type = types.listOf types.package; 41 41 default = [ ]; 42 42 internal = true; 43 - description = '' 43 + description = lib.mdDoc '' 44 44 List of packages containing tracker3 subcommands. 45 45 ''; 46 46 };
+1 -1
nixos/modules/services/hardware/sane.nix
··· 89 89 hardware.sane.configDir = mkOption { 90 90 type = types.str; 91 91 internal = true; 92 - description = "The value of SANE_CONFIG_DIR."; 92 + description = lib.mdDoc "The value of SANE_CONFIG_DIR."; 93 93 }; 94 94 95 95 hardware.sane.netConf = mkOption {
+7 -7
nixos/modules/services/hardware/udev.nix
··· 300 300 type = types.listOf types.path; 301 301 default = []; 302 302 visible = false; 303 - description = '' 304 - <emphasis>This will only be used when systemd is used in stage 1.</emphasis> 303 + description = lib.mdDoc '' 304 + *This will only be used when systemd is used in stage 1.* 305 305 306 - List of packages containing <command>udev</command> rules that will be copied to stage 1. 306 + List of packages containing {command}`udev` rules that will be copied to stage 1. 307 307 All files found in 308 - <filename>«pkg»/etc/udev/rules.d</filename> and 309 - <filename>«pkg»/lib/udev/rules.d</filename> 308 + {file}`«pkg»/etc/udev/rules.d` and 309 + {file}`«pkg»/lib/udev/rules.d` 310 310 will be included. 311 311 ''; 312 312 }; ··· 315 315 type = types.listOf types.path; 316 316 default = []; 317 317 visible = false; 318 - description = '' 319 - <emphasis>This will only be used when systemd is used in stage 1.</emphasis> 318 + description = lib.mdDoc '' 319 + *This will only be used when systemd is used in stage 1.* 320 320 321 321 Packages to search for binaries that are referenced by the udev rules in stage 1. 322 322 This list always contains /bin of the initrd.
+6 -6
nixos/modules/services/logging/filebeat.nix
··· 159 159 type = types.listOf json.type; 160 160 default = []; 161 161 internal = true; 162 - description = '' 162 + description = lib.mdDoc '' 163 163 Inputs specify how Filebeat locates and processes 164 - input data. Use <xref linkend="opt-services.filebeat.inputs"/> instead. 164 + input data. Use [](#opt-services.filebeat.inputs) instead. 165 165 166 - See <link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html"/>. 166 + See <https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html>. 167 167 ''; 168 168 }; 169 169 modules = mkOption { 170 170 type = types.listOf json.type; 171 171 default = []; 172 172 internal = true; 173 - description = '' 173 + description = lib.mdDoc '' 174 174 Filebeat modules provide a quick way to get started 175 175 processing common log formats. They contain default 176 176 configurations, Elasticsearch ingest pipeline 177 177 definitions, and Kibana dashboards to help you 178 178 implement and deploy a log monitoring solution. 179 179 180 - Use <xref linkend="opt-services.filebeat.modules"/> instead. 180 + Use [](#opt-services.filebeat.modules) instead. 181 181 182 - See <link xlink:href="https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html"/>. 182 + See <https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html>. 183 183 ''; 184 184 }; 185 185 };
+1 -1
nixos/modules/services/mail/mail.nix
··· 14 14 type = types.nullOr options.security.wrappers.type.nestedTypes.elemType; 15 15 default = null; 16 16 internal = true; 17 - description = '' 17 + description = lib.mdDoc '' 18 18 Configuration for the sendmail setuid wapper. 19 19 ''; 20 20 };
+2 -2
nixos/modules/services/mail/postfix.nix
··· 140 140 type = types.listOf types.str; 141 141 default = []; 142 142 internal = true; 143 - description = '' 144 - The raw configuration line for the <filename>master.cf</filename>. 143 + description = lib.mdDoc '' 144 + The raw configuration line for the {file}`master.cf`. 145 145 ''; 146 146 }; 147 147 };
+1 -1
nixos/modules/services/misc/nix-daemon.nix
··· 340 340 type = types.attrs; 341 341 internal = true; 342 342 default = { }; 343 - description = "Environment variables used by Nix."; 343 + description = lib.mdDoc "Environment variables used by Nix."; 344 344 }; 345 345 346 346 nrBuildUsers = mkOption {
+1 -1
nixos/modules/services/misc/sourcehut/default.nix
··· 132 132 internal = true; 133 133 type = types.package; 134 134 default = python; 135 - description = '' 135 + description = lib.mdDoc '' 136 136 The python package to use. It should contain references to the *srht modules and also 137 137 gunicorn. 138 138 '';
+3 -3
nixos/modules/services/monitoring/metricbeat.nix
··· 99 99 type = types.listOf settingsFormat.type; 100 100 default = []; 101 101 internal = true; 102 - description = '' 103 - The metric collecting modules. Use <xref linkend="opt-services.metricbeat.modules"/> instead. 102 + description = lib.mdDoc '' 103 + The metric collecting modules. Use [](#opt-services.metricbeat.modules) instead. 104 104 105 - See <link xlink:href="https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-modules.html"/>. 105 + See <https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-modules.html>. 106 106 ''; 107 107 }; 108 108 };
+1 -1
nixos/modules/services/networking/nylon.nix
··· 139 139 140 140 services.nylon = mkOption { 141 141 default = {}; 142 - description = "Collection of named nylon instances"; 142 + description = lib.mdDoc "Collection of named nylon instances"; 143 143 type = with types; attrsOf (submodule nylonOpts); 144 144 internal = true; 145 145 };
+1 -1
nixos/modules/services/printing/cupsd.nix
··· 167 167 type = types.lines; 168 168 internal = true; 169 169 default = ""; 170 - description = '' 170 + description = lib.mdDoc '' 171 171 Additional commands executed while creating the directory 172 172 containing the CUPS server binaries. 173 173 '';
+2 -2
nixos/modules/services/system/dbus.nix
··· 29 29 type = types.bool; 30 30 default = false; 31 31 internal = true; 32 - description = '' 32 + description = lib.mdDoc '' 33 33 Whether to start the D-Bus message bus daemon, which is 34 34 required by many other system services and applications. 35 35 ''; ··· 70 70 type = types.nullOr types.bool; 71 71 default = null; 72 72 visible = false; 73 - description = '' 73 + description = lib.mdDoc '' 74 74 Removed option, do not use. 75 75 ''; 76 76 };
+2 -2
nixos/modules/services/web-apps/icingaweb2/module-monitoring.nix
··· 66 66 visible = false; 67 67 default = name; 68 68 type = str; 69 - description = "Name of this backend"; 69 + description = lib.mdDoc "Name of this backend"; 70 70 }; 71 71 72 72 resource = mkOption { ··· 98 98 visible = false; 99 99 default = name; 100 100 type = str; 101 - description = "Name of this transport"; 101 + description = lib.mdDoc "Name of this transport"; 102 102 }; 103 103 104 104 type = mkOption {
+1 -1
nixos/modules/services/web-apps/nextcloud.nix
··· 529 529 default = occ; 530 530 defaultText = literalMD "generated script"; 531 531 internal = true; 532 - description = '' 532 + description = lib.mdDoc '' 533 533 The nextcloud-occ program preconfigured to target this Nextcloud instance. 534 534 ''; 535 535 };
+2 -2
nixos/modules/services/x11/desktop-managers/default.nix
··· 64 64 bgSupport = true; 65 65 start = "..."; 66 66 }; 67 - description = '' 67 + description = lib.mdDoc '' 68 68 Internal option used to add some common line to desktop manager 69 69 scripts before forwarding the value to the 70 - <varname>displayManager</varname>. 70 + `displayManager`. 71 71 ''; 72 72 apply = map (d: d // { 73 73 manage = "desktop";
+1 -1
nixos/modules/services/x11/desktop-managers/gnome.nix
··· 201 201 favorite-apps=[ 'firefox.desktop', 'org.gnome.Calendar.desktop' ] 202 202 ''' 203 203 ''; 204 - description = "List of desktop files to put as favorite apps into gnome-shell. These need to be installed somehow globally."; 204 + description = lib.mdDoc "List of desktop files to put as favorite apps into gnome-shell. These need to be installed somehow globally."; 205 205 }; 206 206 207 207 extraGSettingsOverrides = mkOption {
+3 -3
nixos/modules/services/x11/display-managers/default.nix
··· 153 153 internal = true; 154 154 default = "${xorg.xauth}/bin/xauth"; 155 155 defaultText = literalExpression ''"''${pkgs.xorg.xauth}/bin/xauth"''; 156 - description = "Path to the <command>xauth</command> program used by display managers."; 156 + description = lib.mdDoc "Path to the {command}`xauth` program used by display managers."; 157 157 }; 158 158 159 159 xserverBin = mkOption { ··· 252 252 }; 253 253 254 254 sessionData = mkOption { 255 - description = "Data exported for display managers’ convenience"; 255 + description = lib.mdDoc "Data exported for display managers’ convenience"; 256 256 internal = true; 257 257 default = {}; 258 258 apply = val: { ··· 299 299 importedVariables = mkOption { 300 300 type = types.listOf (types.strMatching "[a-zA-Z_][a-zA-Z0-9_]*"); 301 301 visible = false; 302 - description = '' 302 + description = lib.mdDoc '' 303 303 Environment variables to import into the systemd user environment. 304 304 ''; 305 305 };
+2 -2
nixos/modules/services/x11/window-managers/default.nix
··· 59 59 name = "wmii"; 60 60 start = "..."; 61 61 }]; 62 - description = '' 62 + description = lib.mdDoc '' 63 63 Internal option used to add some common line to window manager 64 64 scripts before forwarding the value to the 65 - <varname>displayManager</varname>. 65 + `displayManager`. 66 66 ''; 67 67 apply = map (d: d // { 68 68 manage = "window";
+1 -1
nixos/modules/services/x11/xserver.nix
··· 294 294 drivers = mkOption { 295 295 type = types.listOf types.attrs; 296 296 internal = true; 297 - description = '' 297 + description = lib.mdDoc '' 298 298 A list of attribute sets specifying drivers to be loaded by 299 299 the X11 server. 300 300 '';
+3 -3
nixos/modules/system/activation/activation-script.nix
··· 139 139 }; 140 140 141 141 system.dryActivationScript = mkOption { 142 - description = "The shell script that is to be run when dry-activating a system."; 142 + description = lib.mdDoc "The shell script that is to be run when dry-activating a system."; 143 143 readOnly = true; 144 144 internal = true; 145 145 default = systemActivationScript (removeAttrs config.system.activationScripts [ "script" ]) true; ··· 199 199 example = literalExpression ''"''${pkgs.busybox}/bin/env"''; 200 200 type = types.nullOr types.path; 201 201 visible = false; 202 - description = '' 202 + description = lib.mdDoc '' 203 203 The env(1) executable that is linked system-wide to 204 - <literal>/usr/bin/env</literal>. 204 + `/usr/bin/env`. 205 205 ''; 206 206 }; 207 207 };
+6 -6
nixos/modules/system/activation/top-level.nix
··· 207 207 system.boot.loader.id = mkOption { 208 208 internal = true; 209 209 default = ""; 210 - description = '' 210 + description = lib.mdDoc '' 211 211 Id string of the used bootloader. 212 212 ''; 213 213 }; ··· 217 217 default = pkgs.stdenv.hostPlatform.linux-kernel.target; 218 218 defaultText = literalExpression "pkgs.stdenv.hostPlatform.linux-kernel.target"; 219 219 type = types.str; 220 - description = '' 220 + description = lib.mdDoc '' 221 221 Name of the kernel file to be passed to the bootloader. 222 222 ''; 223 223 }; ··· 226 226 internal = true; 227 227 default = "initrd"; 228 228 type = types.str; 229 - description = '' 229 + description = lib.mdDoc '' 230 230 Name of the initrd file to be passed to the bootloader. 231 231 ''; 232 232 }; ··· 238 238 # go to `true` instead of `echo`, hiding the useless path 239 239 # from the log. 240 240 default = "echo 'Warning: do not know how to make this configuration bootable; please enable a boot loader.' 1>&2; true"; 241 - description = '' 241 + description = lib.mdDoc '' 242 242 A program that writes a bootloader installation script to the path passed in the first command line argument. 243 243 244 - See <literal>nixos/modules/system/activation/switch-to-configuration.pl</literal>. 244 + See `nixos/modules/system/activation/switch-to-configuration.pl`. 245 245 ''; 246 246 type = types.unique { 247 247 message = '' ··· 280 280 type = types.lines; 281 281 internal = true; 282 282 default = ""; 283 - description = '' 283 + description = lib.mdDoc '' 284 284 This code will be added to the builder creating the system store path. 285 285 ''; 286 286 };
+1 -1
nixos/modules/system/boot/binfmt.nix
··· 256 256 interpreterSandboxPath = mkOption { 257 257 internal = true; 258 258 default = null; 259 - description = '' 259 + description = lib.mdDoc '' 260 260 Path of the interpreter to expose in the build sandbox. 261 261 ''; 262 262 type = types.nullOr types.path;
+3 -3
nixos/modules/system/boot/kernel.nix
··· 25 25 default = {}; 26 26 example = literalExpression "{ debug = true; }"; 27 27 internal = true; 28 - description = '' 28 + description = lib.mdDoc '' 29 29 This option allows to enable or disable certain kernel features. 30 30 It's not API, because it's about kernel feature sets, that 31 31 make sense for specific use cases. Mostly along with programs, ··· 173 173 type = types.listOf types.path; 174 174 internal = true; 175 175 default = []; 176 - description = '' 176 + description = lib.mdDoc '' 177 177 Tree of kernel modules. This includes the kernel, plus modules 178 178 built outside of the kernel. Combine these into a single tree of 179 179 symlinks because modprobe only supports one directory. ··· 193 193 ''; 194 194 internal = true; 195 195 type = types.listOf types.attrs; 196 - description = '' 196 + description = lib.mdDoc '' 197 197 This option allows modules to specify the kernel config options that 198 198 must be set (or unset) for the module to work. Please use the 199 199 lib.kernelConfig functions to build list elements.
+1 -1
nixos/modules/system/boot/kernel_config.nix
··· 14 14 default = null; 15 15 internal = true; 16 16 visible = true; 17 - description = '' 17 + description = lib.mdDoc '' 18 18 Use this field for tristate kernel options expecting a "y" or "m" or "n". 19 19 ''; 20 20 };
+3 -3
nixos/modules/system/boot/luksroot.nix
··· 523 523 type = types.bool; 524 524 default = false; 525 525 internal = true; 526 - description = '' 526 + description = lib.mdDoc '' 527 527 Whether to configure luks support in the initrd, when no luks 528 528 devices are configured. 529 529 ''; ··· 563 563 default = name; 564 564 example = "luksroot"; 565 565 type = types.str; 566 - description = "Name of the unencrypted device in <filename>/dev/mapper</filename>."; 566 + description = lib.mdDoc "Name of the unencrypted device in {file}`/dev/mapper`."; 567 567 }; 568 568 569 569 device = mkOption { ··· 819 819 default = []; 820 820 example = [ "_netdev" ]; 821 821 visible = false; 822 - description = '' 822 + description = lib.mdDoc '' 823 823 Only used with systemd stage 1. 824 824 825 825 Extra options to append to the last column of the generated crypttab file.
+1 -1
nixos/modules/system/boot/networkd.nix
··· 1824 1824 }; 1825 1825 1826 1826 systemd.network.units = mkOption { 1827 - description = "Definition of networkd units."; 1827 + description = lib.mdDoc "Definition of networkd units."; 1828 1828 default = {}; 1829 1829 internal = true; 1830 1830 type = with types; attrsOf (submodule (
+4 -4
nixos/modules/system/boot/stage-1.nix
··· 575 575 internal = true; 576 576 default = ""; 577 577 type = types.lines; 578 - description = '' 578 + description = lib.mdDoc '' 579 579 Shell commands to be executed in the builder of the 580 580 extra-utils derivation. This can be used to provide 581 581 additional utilities in the initial ramdisk. ··· 586 586 internal = true; 587 587 default = ""; 588 588 type = types.lines; 589 - description = '' 589 + description = lib.mdDoc '' 590 590 Shell commands to be executed in the builder of the 591 591 extra-utils derivation after patchelf has done its 592 592 job. This can be used to test additional utilities ··· 598 598 internal = true; 599 599 default = ""; 600 600 type = types.lines; 601 - description = '' 601 + description = lib.mdDoc '' 602 602 Shell commands to be executed in the builder of the 603 603 udev-rules derivation. This can be used to add 604 604 additional udev rules in the initial ramdisk. ··· 676 676 default = false; 677 677 type = types.bool; 678 678 description = 679 - '' 679 + lib.mdDoc '' 680 680 Whether the bootloader setup runs append-initrd-secrets. 681 681 If not, any needed secrets must be copied into the initrd 682 682 and thus added to the store.
+1 -1
nixos/modules/system/boot/systemd/user.nix
··· 97 97 default = []; 98 98 type = types.listOf types.str; 99 99 example = []; 100 - description = '' 100 + description = lib.mdDoc '' 101 101 Additional units shipped with systemd that should be enabled for per-user systemd instances. 102 102 ''; 103 103 internal = true;
+2 -2
nixos/modules/tasks/filesystems.nix
··· 223 223 system.fsPackages = mkOption { 224 224 internal = true; 225 225 default = [ ]; 226 - description = "Packages supplying file system mounters and checkers."; 226 + description = lib.mdDoc "Packages supplying file system mounters and checkers."; 227 227 }; 228 228 229 229 boot.supportedFilesystems = mkOption { ··· 237 237 default = {}; 238 238 type = types.attrsOf (types.submodule coreFileSystemOpts); 239 239 internal = true; 240 - description = '' 240 + description = lib.mdDoc '' 241 241 Special filesystems that are mounted very early during boot. 242 242 ''; 243 243 };
+1 -1
nixos/modules/tasks/lvm.nix
··· 10 10 default = pkgs.lvm2; 11 11 internal = true; 12 12 defaultText = literalExpression "pkgs.lvm2"; 13 - description = '' 13 + description = lib.mdDoc '' 14 14 This option allows you to override the LVM package that's used on the system 15 15 (udev rules, tmpfiles, systemd services). 16 16 Defaults to pkgs.lvm2, pkgs.lvm2_dmeventd if dmeventd or pkgs.lvm2_vdo if vdo is enabled.
+1 -1
nixos/modules/testing/service-runner.nix
··· 107 107 opts = { config, name, ... }: { 108 108 options.runner = mkOption { 109 109 internal = true; 110 - description = '' 110 + description = lib.mdDoc '' 111 111 A script that runs the service outside of systemd, 112 112 useful for testing or for using NixOS services outside 113 113 of NixOS.
+3 -3
nixos/modules/virtualisation/amazon-options.nix
··· 8 8 enable = lib.mkOption { 9 9 default = false; 10 10 internal = true; 11 - description = '' 11 + description = lib.mdDoc '' 12 12 Whether the EC2 instance uses a ZFS root. 13 13 ''; 14 14 }; ··· 44 44 hvm = lib.mkOption { 45 45 default = lib.versionAtLeast config.system.stateVersion "17.03"; 46 46 internal = true; 47 - description = '' 47 + description = lib.mdDoc '' 48 48 Whether the EC2 instance is a HVM instance. 49 49 ''; 50 50 }; ··· 52 52 default = pkgs.stdenv.hostPlatform.isAarch64; 53 53 defaultText = literalExpression "pkgs.stdenv.hostPlatform.isAarch64"; 54 54 internal = true; 55 - description = '' 55 + description = lib.mdDoc '' 56 56 Whether the EC2 instance is using EFI. 57 57 ''; 58 58 };
+2 -2
nixos/modules/virtualisation/cri-o.nix
··· 72 72 type = types.package; 73 73 default = crioPackage; 74 74 internal = true; 75 - description = '' 75 + description = lib.mdDoc '' 76 76 The final CRI-O package (including extra packages). 77 77 ''; 78 78 }; ··· 80 80 networkDir = mkOption { 81 81 type = types.nullOr types.path; 82 82 default = null; 83 - description = "Override the network_dir option."; 83 + description = lib.mdDoc "Override the network_dir option."; 84 84 internal = true; 85 85 }; 86 86
+2 -2
nixos/modules/virtualisation/openstack-options.nix
··· 9 9 enable = lib.mkOption { 10 10 default = false; 11 11 internal = true; 12 - description = '' 12 + description = lib.mdDoc '' 13 13 Whether the OpenStack instance uses a ZFS root. 14 14 ''; 15 15 }; ··· 47 47 default = pkgs.stdenv.hostPlatform.isAarch64; 48 48 defaultText = literalExpression "pkgs.stdenv.hostPlatform.isAarch64"; 49 49 internal = true; 50 - description = '' 50 + description = lib.mdDoc '' 51 51 Whether the instance is using EFI. 52 52 ''; 53 53 };
+1 -1
nixos/modules/virtualisation/podman/default.nix
··· 114 114 type = types.package; 115 115 default = podmanPackage; 116 116 internal = true; 117 - description = '' 117 + description = lib.mdDoc '' 118 118 The final Podman package (including extra packages). 119 119 ''; 120 120 };
+1 -1
nixos/modules/virtualisation/qemu-vm.nix
··· 570 570 type = types.str; 571 571 default = ""; 572 572 internal = true; 573 - description = "Primary IP address used in /etc/hosts."; 573 + description = lib.mdDoc "Primary IP address used in /etc/hosts."; 574 574 }; 575 575 576 576 virtualisation.qemu = {
+3 -3
nixos/tests/common/resolver.nix
··· 10 10 type = lib.types.bool; 11 11 default = true; 12 12 internal = true; 13 - description = '' 13 + description = lib.mdDoc '' 14 14 Whether to enable the resolver that automatically discovers zone in the 15 15 test network. 16 16 17 - This option is <literal>true</literal> by default, because the module 17 + This option is `true` by default, because the module 18 18 defining this option needs to be explicitly imported. 19 19 20 20 The reason this option exists is for the 21 - <filename>nixos/tests/common/acme/server</filename> module, which 21 + {file}`nixos/tests/common/acme/server` module, which 22 22 needs that option to disable the resolver once the user has set its own 23 23 resolver. 24 24 '';