throw"Could not load a value as a module, because it is of type ${lib.strings.escapeNixStringm._type}${lib.optionalString(fallbackFile!=null)", in file ${toStringfallbackFile}."}"
elseifisListmthen
letdefs=[{file=fallbackFile;value=m;}];in
throw"Module imports can't be nested lists. Perhaps you meant to remove one level of lists? Definitions: ${showDefsdefs}"
checkConfigError 'The module .*/module-class-is-darwin.nix was imported into nixos instead of darwin.' config.fail.config ./class-check.nix
checkConfigError 'The module foo.nix#darwinModules.default was imported into nixos instead of darwin.' config.fail-anon.config ./class-check.nix
# _type check
checkConfigError 'Could not load a value as a module, because it is of type "flake", in file .*/module-imports-_type-check.nix' config.ok.config ./module-imports-_type-check.nix