Documentation for the magic `<nixpkgs>`

#1

Despite using it all the time, I realized I don’t actually know what <nixpkgs> means.

I assume it’s a language thing along the lines of “a name appearing in angle brackets corresponds to a nixpkgs channel, and should resolve to the path of that channel” - is that right? Is there official documentation somewhere that I’m missing?

#2

Ahh it’s to do with $NIX_PATH: https://nixos.org/nix/manual/#env-NIX_PATH

2 Likes