Where is programs.sqlite when not using channels?

I’ve removed all nix channels to avoid global states, but now command-not-found complains it can’t find programs.sqlite in the usual place /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite. I use flake with home-manager, there’s a home manager config for that file, but I don’t know what to put there.