Step 1: Open Fedora 34 “Software” app
Once the “Software” app is open, follow the steps in the below image.

Step 2: Open “Terminal”
Once “Terminal” is open type the following commands.
sudo dnf update -y
#(reboot if you are not on the latest kernel)
sudo dnf install akmod-nvidia
sudo dnf install xorg-x11-drv-nvidia-cuda
#( This step is optional. Use for cuda/nvdec/nvenc support)