From 6a64625fdae108704fd56c7d726e725d44982ab5 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Mon, 25 Apr 2022 00:03:57 -0700 Subject: [PATCH] eval.nix: Ignore typed allowAliases config when checking unoverridden config keys This was added in NixOS/nixpkgs#166792. Fixes #74. --- src/nix/hive/eval.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/hive/eval.nix b/src/nix/hive/eval.nix index 1f33a24..fcd1e45 100644 --- a/src/nix/hive/eval.nix +++ b/src/nix/hive/eval.nix @@ -416,7 +416,7 @@ let # meta.nixpkgs are overridden. warnings = let metaKeys = attrNames npkgs.config; - nodeKeys = [ "doCheckByDefault" "warnings" ] ++ (attrNames config.nixpkgs.config); + nodeKeys = [ "doCheckByDefault" "warnings" "allowAliases" ] ++ (attrNames config.nixpkgs.config); remainingKeys = filter (k: ! elem k nodeKeys) metaKeys; in lib.optional (length remainingKeys != 0)