mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
wrapper-manager-fds/modules: add unset option
This commit is contained in:
parent
6e915c34b2
commit
f1d4984921
@ -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