Open KiaraGrouwstra opened 8 months ago
implementing this seems more viable if one accepts flakes as a de facto part of today's standard, and probably includes:
nix-env
command--file
argument <nixpkgs>
command-not-found.sh
script which should be generalized to not use a hardcoded toplevel=nixpkgs
but actually name the correct flake as per the (extended) database
nix-index now describes itself as a 'files database for nixpkgs'. in practice, users may well end up using packages from more nix package repositories than those from nixpkgs. as such, it would be nice if nix-index were generalized so as to say index packages among all of one's inputs, maybe treating nixpkgs as just one such input.