nixos/eval-config: Deprecate extraArgs and check parameters

This commit is contained in:
Robert Hensing 2021-12-02 18:15:08 +00:00
parent 1a223857ab
commit 78ada83361

View file

@ -52,6 +52,11 @@ 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?check) "The check argument to eval-config.nix is deprecated. Please set config._module.check instead."
x;
legacyModules =
lib.optional (evalConfigArgs?args) {
config = {
@ -83,7 +88,7 @@ let
nixosWithUserModules = noUserModules.extendModules { modules = allUserModules; };
in {
in withWarnings {
# Merge the option definitions in all modules, forming the full
# system configuration.