mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-02-07 06:19:02 +00:00
wrapper-manager-fds/modules: add unset option
This commit is contained in:
parent
7cdb74a4a3
commit
4120a54385
@ -64,6 +64,15 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
unset = lib.mkOption {
|
||||
type = with lib.types; listOf nonEmptyStr;
|
||||
description = ''
|
||||
A list of environment variables to be unset into the wrapper script.
|
||||
'';
|
||||
default = [ ];
|
||||
example = [ "NO_COLOR" ];
|
||||
};
|
||||
|
||||
executableName = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
description = ''
|
||||
|
@ -63,6 +63,7 @@
|
||||
"--argv0" (config.executableName or config.arg0)
|
||||
]
|
||||
++ (lib.mapAttrsToList (n: v: "--set ${n} ${v}") config.env)
|
||||
++ (builtins.map (v: "--unset ${v}") config.unset)
|
||||
++ (builtins.map (v: "--prefix 'PATH' ':' ${lib.escapeShellArg v}") config.pathAdd)
|
||||
++ (builtins.map (v: "--add-flags ${v}") config.prependArgs)
|
||||
++ (builtins.map (v: "--append-flags ${v}") config.appendArgs)
|
||||
|
Loading…
Reference in New Issue
Block a user