mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-16 03:06:17 +02:00
4781e7fa70
This makes for more useful manual table of contents, that displays the information at a glance. The `nix help-stores` command is kept as-is, even though it will show up in the manual with the same information as these pages due to the way it is written as a "`--help`-style" command. Deciding what to do with that command is left for a later PR. This change also lists all store types at the top of the respective overview page. Co-authored-by: John Ericson <John.Ericson@Obsidian.Systems
13 lines
251 B
Nix
13 lines
251 B
Nix
with builtins;
|
|
with import <nix/utils.nix>;
|
|
|
|
let
|
|
showExperimentalFeature = name: doc:
|
|
squash ''
|
|
## [`${name}`]{#xp-feature-${name}}
|
|
|
|
${doc}
|
|
'';
|
|
in
|
|
|
|
xps: (concatStringsSep "\n" (attrValues (mapAttrs showExperimentalFeature xps)))
|