pkgs/config.nix: Fix missing attribute when no config keys are undeclared

This commit is contained in:
Zhaofeng Li
2022-06-05 14:50:52 -07:00
parent e2de23b6db
commit 87de4db5e6

View File

@@ -139,7 +139,7 @@ in {
config = {
warnings = lib.optionals config.warnUndeclaredOptions (
lib.mapAttrsToList (k: v: "undeclared Nixpkgs option set: config.${k}") config._undeclared
lib.mapAttrsToList (k: v: "undeclared Nixpkgs option set: config.${k}") config._undeclared or {}
);
};