I decided to take it upon myself to fix nix search -f '<nixpkgs>'
https://github.com/NixOS/nix/pull/7668
Unfortunately you still need to say
nix search -f '<nixpkgs>' '' {search-term}
Where the empty string '' means search from root (you can tell it to search from e.g. haskellPackages), but it at least makes some sense