Skip to content

Commit

Permalink
Merge pull request NixOS#176477 from zhaofengli/config-missing-undecl…
Browse files Browse the repository at this point in the history
…ared

pkgs/config.nix: Fix missing attribute when no config keys are undeclared
  • Loading branch information
roberth authored Jun 6, 2022
2 parents 5a1cc60 + 87de4db commit 0642d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/top-level/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
);
};

Expand Down

0 comments on commit 0642d00

Please sign in to comment.