chore: format and add meta module

This commit is contained in:
technofab 2025-09-15 11:28:58 +02:00
parent 223000e43c
commit 5fee6ef12a
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
7 changed files with 238 additions and 8 deletions

View file

@ -13,7 +13,7 @@
prefix,
...
} @ args: let
vals = filter (key: args.${key} != null && args.${key} != false) [
vals = filter (key: args.${key} != null && args.${key}) [
"eval"
"prefix"
"unset"
@ -122,5 +122,14 @@ in {
};
enterShellCommands."env".text = concatStringsSep "\n" (map envToBash (builtins.attrValues config.env));
# TODO: collect all env vars, then add them to the menu if they have a description and "visibile == true"
meta = {
sections."Environment Variables".color = "red";
entries."XDG_DATA_DIRS" = {
description = "Hello world";
section = "Environment Variables";
subEntries."Usage" = "hello world";
};
};
};
}