How to regenerate `/etc/default/grub`?

Welcome to ask.fedora

https://discussion.fedoraproject.org/t/proprietary-nvidia-driver-shows-a-black-screen-instead-of-a-virtual-terminal-or-a-graphical-session/70038

Have a look if this commands there help you.