Stumbled across this repo, not tested yet.
Don’t know why use this instead of run package from nvidia.
From Nvidia Github repo
Note that the kernel modules built here must be used with GSP
firmware and user-space NVIDIA GPU driver components from a corresponding
560.35.03 driver release. This can be achieved by installing
the NVIDIA GPU driver from the .run file using the --no-kernel-modules
option.
https://www.nvidia.com/en-us/geforce/drivers/
sh ./NVIDIA-Linux-[...].run --no-kernel-modules
Build and install:
git clone https://github.com/NVIDIA/open-gpu-kernel-modules.git
cd open-gpu-kernel-modules
git checkout 560.35.03
make modules -j$(nproc)
make modules_install -j$(nproc)