Installing nvidia proprietary driver for dom0

Hi all, I am hitting the following errors when running the command given in this guide:
https://forum.qubes-os.org/t/nvidia-driver-installation/2136

sudo rpmbuild --nodeps -D “kernels uname -r” --rebuild nvidia-kmod-545.29.06-1.fc38.src.rpm

Installing nvidia-kmod-545.29.06-1.fc38.src.rpm
warning: nvidia-kmod-545.29.06-1.fc38.src.rpm: Header V4 RSA/SHA256 Signature, key ID 94843c65: NOKEY
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
setting SOURCE_DATE_EPOCH=1700611200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qNohFO

  • umask 022
  • cd /root/rpmbuild/BUILD
  • echo ‘kmodtool error: Kernel uname from /lib/modules/6.1.62-1.qubes.fc37.x86_64/source/Makefile doesn’'‘t match 6.1.62-1.qubes.fc37.x86_64 from --for-kernels argument.’
    kmodtool error: Kernel uname from /lib/modules/6.1.62-1.qubes.fc37.x86_64/source/Makefile doesn’t match 6.1.62-1.qubes.fc37.x86_64 from --for-kernels argument.
  • exit 2
    error: Bad exit status from /var/tmp/rpm-tmp.qNohFO (%prep)

RPM build warnings:
nvidia-kmod-545.29.06-1.fc38.src.rpm: Header V4 RSA/SHA256 Signature, key ID 94843c65: NOKEY
user mockbuild does not exist - using root
group mock does not exist - using root
user mockbuild does not exist - using root
group mock does not exist - using root
user mockbuild does not exist - using root
group mock does not exist - using root

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.qNohFO (%prep)

I don’t get it, it seems to indicate the kernel is mismatch while it matched perfectly when I try uname -r in dom0. Any advise? Thanks!