It seems you are using fedora, me too. I use the instructions here for the proprietary drivers: https://rpmfusion.org/Howto/NVIDIA#Current_GeForce.2FQuadro.2FTesla
Make sure to start from a clean slate by running the instructions at the bottom to uninstall any previous drivers.
If you need nvidia-smi, cuda etc, run the optional cuda install instructions, part of the link I provided.