Merge pull request #150045 from Infinisil/fix-nixos-extraArgs

lib/nixos/eval-config.nix: Fix extraArgs
This commit is contained in:
Robert Hensing 2021-12-10 13:47:56 +01:00 committed by GitHub
commit e817802236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,12 +53,12 @@ let
};
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."
x;
legacyModules =
lib.optional (evalConfigArgs?args) {
lib.optional (evalConfigArgs?extraArgs) {
config = {
_module.args = extraArgs;
};