From 082a03344347e3baa29f6f165bfcd942d38a968a Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Wed, 17 Feb 2021 23:06:22 -0800 Subject: [PATCH] eval.nix: Exclude internal Nixpkgs config options from node override warning --- src/nix/eval.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/eval.nix b/src/nix/eval.nix index 9435f37..ffee416 100644 --- a/src/nix/eval.nix +++ b/src/nix/eval.nix @@ -255,7 +255,7 @@ let # meta.nixpkgs are overridden. warnings = let metaKeys = attrNames npkgs.config; - nodeKeys = attrNames config.nixpkgs.config; + nodeKeys = [ "doCheckByDefault" "warnings" ] ++ (attrNames config.nixpkgs.config); remainingKeys = filter (k: ! elem k nodeKeys) metaKeys; in lib.optional (length remainingKeys != 0)