wrapper-manager-fds/modules: update module documentation

This commit is contained in:
Gabriel Arazas 2024-07-28 10:47:48 +08:00
parent 296e8ea59b
commit 5180f42a48
2 changed files with 8 additions and 4 deletions

View File

@ -72,8 +72,7 @@ let
arg0 = lib.mkOption { arg0 = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = '' description = ''
The first argument of the wrapper script. This option is used when the The first argument of the wrapper script.
{option}`build.variant` is `executable`.
''; '';
example = lib.literalExpression "lib.getExe' pkgs.neofetch \"neofetch\""; example = lib.literalExpression "lib.getExe' pkgs.neofetch \"neofetch\"";
}; };
@ -93,8 +92,12 @@ let
''; '';
default = { }; default = { };
example = { example = {
"FOO_TYPE" = "custom"; "FOO_TYPE".value = "custom";
"FOO_LOG_STYLE" = "systemd"; "FOO_LOG_STYLE" = {
action = "set-default";
value = "systemd";
};
"USELESS_VAR".action = "unset";
}; };
}; };

View File

@ -7,6 +7,7 @@ let
enable = lib.mkOption { enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = if isGlobal then true else cfg.enable; default = if isGlobal then true else cfg.enable;
example = false;
description = if isGlobal then '' description = if isGlobal then ''
Whether to enable explicit glibc locale support. This is recommended Whether to enable explicit glibc locale support. This is recommended
for Nix-built applications. for Nix-built applications.