How to make `nix` generally ignore `nixConfig` in a flake?

Sometimes when I want to do a quick nix run or nix build or whatever in a foreign flake, I have to hit Enter ⏎ a couple of times as there is some random stuff in their nixConfig attribute.

I consider this annoying and want to generally disallow consideration of nixConfig, I do not use it personally and am not interested in the hints given by the third party.

1 Like