Different ways of "populating" pkgs variable?

@TLATER is correct, you should prefer calling nixpkgs directly instead of importing it.

This normally doesn’t matter if nobody but you is using the flake, but it’s a good habit to get into.

See also 1000 instances of nixpkgs - #18 by zimbatm for extended discussion on this topic.

2 Likes