Please follow the official documentation which now includes the relevant instructions.
Follow the following instructions:
- Install the C compiler through
sudo dnf group install "C Development Tools and Libraries" - Install the kernel headers
sudo dnf install kernel-devel - Download the latest drivers (replace with URL from nvidia website)