diff options
author | pennae <github@quasiparticle.net> | 2022-08-29 23:34:22 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-08-31 16:32:53 +0200 |
commit | c915b915b5e466a0b0b2af2906cd4d2380b8a1de (patch) | |
tree | 9e153e37bef5bb5e4214dfcaa3843a96de7cf4d4 /nixos/modules/config/malloc.nix | |
parent | 1013069f52123135cc1d96b2b7d77606a22d3b33 (diff) |
nixos/*: md-convert options with unordered lists
mostly no rendering changes. some lists (like simplelist) don't have an exact translation to markdown, so we use a comma-separated list of literals instead.
Diffstat (limited to 'nixos/modules/config/malloc.nix')
-rw-r--r-- | nixos/modules/config/malloc.nix | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix index a3fed33afa185..4db0480b15530 100644 --- a/nixos/modules/config/malloc.nix +++ b/nixos/modules/config/malloc.nix @@ -77,24 +77,21 @@ in environment.memoryAllocator.provider = mkOption { type = types.enum ([ "libc" ] ++ attrNames providers); default = "libc"; - description = '' + description = lib.mdDoc '' The system-wide memory allocator. Briefly, the system-wide memory allocator providers are: - <itemizedlist> - <listitem><para><literal>libc</literal>: the standard allocator provided by libc</para></listitem> - ${toString (mapAttrsToList - (name: value: "<listitem><para><literal>${name}</literal>: ${value.description}</para></listitem>") + + - `libc`: the standard allocator provided by libc + ${concatStringsSep "\n" (mapAttrsToList + (name: value: "- `${name}`: ${replaceStrings [ "\n" ] [ " " ] value.description}") providers)} - </itemizedlist> - <warning> - <para> + ::: {.warning} Selecting an alternative allocator (i.e., anything other than - <literal>libc</literal>) may result in instability, data loss, + `libc`) may result in instability, data loss, and/or service failure. - </para> - </warning> + ::: ''; }; }; |