Merge pull request #176477 from zhaofengli/config-missing-undeclared
pkgs/config.nix: Fix missing attribute when no config keys are undeclared
This commit is contained in:
commit
0642d0014c
@ -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 {}
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user