Because I have like 10 SSDs’ in my computer, nixos-rebuild finds all my old operating systems and adds it to grub. Is there a way to exclude where it looks?
You can turn off
boot.loader.grub.useOSProber but I don’t see any way to filter what it finds. If you do turn it off, you’ll need to manually configure entries you do want with