lib/nixos/eval-config.nix: Fix extraArgs
Fixes a mistake in https://github.com/NixOS/nixpkgs/pull/148315 that caused https://github.com/NixOS/nixpkgs/issues/148343#issuecomment-990881216
This commit is contained in:
parent
1dfc4c3edf
commit
2f2b60dd87
|
@ -53,12 +53,12 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
withWarnings = x:
|
withWarnings = x:
|
||||||
lib.warnIf (evalConfigArgs?args) "The extraArgs argument to eval-config.nix is deprecated. Please set config._module.args instead."
|
lib.warnIf (evalConfigArgs?extraArgs) "The extraArgs argument to eval-config.nix is deprecated. Please set config._module.args instead."
|
||||||
lib.warnIf (evalConfigArgs?check) "The check argument to eval-config.nix is deprecated. Please set config._module.check instead."
|
lib.warnIf (evalConfigArgs?check) "The check argument to eval-config.nix is deprecated. Please set config._module.check instead."
|
||||||
x;
|
x;
|
||||||
|
|
||||||
legacyModules =
|
legacyModules =
|
||||||
lib.optional (evalConfigArgs?args) {
|
lib.optional (evalConfigArgs?extraArgs) {
|
||||||
config = {
|
config = {
|
||||||
_module.args = extraArgs;
|
_module.args = extraArgs;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue