mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2026-02-02 07:15:09 +01:00
chore: format and add meta module
This commit is contained in:
parent
223000e43c
commit
5fee6ef12a
7 changed files with 238 additions and 8 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue