We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pipe
1 parent ee320b8 commit f7fd879Copy full SHA for f7fd879
modules/docs/options.nix
@@ -176,8 +176,9 @@ in
176
inherit optionsPageModule;
177
};
178
# Define pages for each "optionPages" attr
179
- pages = builtins.mapAttrs (_: cfg: cfg.page) (
180
- lib.filterAttrs (_: v: v.enable) config.docs.optionPages
181
- );
+ pages = lib.pipe config.docs.optionPages [
+ (lib.filterAttrs (_: v: v.enable))
+ (builtins.mapAttrs (_: cfg: cfg.page))
182
+ ];
183
184
}
modules/docs/platforms.nix
@@ -99,8 +99,9 @@ in
99
100
101
# Define pages for each "platformPages" attr
102
- // builtins.mapAttrs (_: cfg: cfg.page) (
103
- lib.filterAttrs (_: v: v.enable) config.docs.platformPages
104
+ // lib.pipe config.docs.platformPages [
105
106
107
0 commit comments