I have
nix.registry = {
nixos = {
from = { type = "indirect"; id = "nixos"; };
flake = args.nixpkgs;
};
in my hm config to avoid re-download and re-evaluation of nixpkgs every time I do a nix search nixos foobar
and to avoid massive downloads on every nix shell
invocation.