From 2f2b60dd8736a92f123b29b016d0b220c0df567b Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 10 Dec 2021 12:55:30 +0100 Subject: [PATCH] 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 --- nixos/lib/eval-config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/lib/eval-config.nix b/nixos/lib/eval-config.nix index d4567409f401..62d09b8173bd 100644 --- a/nixos/lib/eval-config.nix +++ b/nixos/lib/eval-config.nix @@ -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; };