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

View File

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