mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
wrapper-manager-fds/modules: allow envvar values to be non-escaped
This commit is contained in:
parent
f6d80a44d1
commit
72ecef6e69
@ -31,6 +31,10 @@ let
|
||||
'';
|
||||
example = "HELLO THERE";
|
||||
};
|
||||
|
||||
isEscaped = lib.mkEnableOption "escaping of the value" // {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
@ -143,7 +147,7 @@ let
|
||||
(n: v:
|
||||
if v.action == "unset"
|
||||
then "--${v.action} ${lib.escapeShellArg n}"
|
||||
else "--${v.action} ${lib.escapeShellArg n} ${lib.escapeShellArg v.value}")
|
||||
else "--${v.action} ${lib.escapeShellArg n} ${if v.isEscaped then lib.escapeShellArg v.value else v.value}")
|
||||
config.env)
|
||||
++ (builtins.map (v: "--add-flags ${lib.escapeShellArg v}") config.prependArgs)
|
||||
++ (builtins.map (v: "--append-flags ${lib.escapeShellArg v}") config.appendArgs)
|
||||
|
Loading…
Reference in New Issue
Block a user