But when I attempt to use dkms to add a module it complains the headers are not there.
Error! Your kernel headers for kernel 6.0.5-300.fc37.aarch64 cannot be found at /lib/modules/6.0.5-300.fc37.aarch64/build or /lib/modules/6.0.5-300.fc37.aarch64/source.
Please install the linux-headers-6.0.5-300.fc37.aarch64 package or use the --kernelsourcedir option to tell DKMS where it’s located.
/lib/modules/6.0.5-300.fc37.aarch64/build appears to be a broken link to /usr/src/kernels/6.0.5-300.fc37.aarch64
The kernel-devel package is required for either akmods or dkms.
Just so you know, the dkms package is not installed by default since fedora uses akmods almost exclusively to build kernel modules. akmods is used by most akmod-XXXXX packages to do automatic building of the kernel modules and dkms would have to be manually used to do the same with each kernel update.
What are you doing that you seem to think dkms is needed?
Just an FYI.
I have not had dkms installed on any of my systems since fedora started using akmods instead, and certainly have never missed it. I use nvidia GPUs and when I install akmod-nvidia the system ‘magically’ handles the build of all needed kernel modules (drivers) for me. The build of new modules for new kernel updates is also done automatically.
I think this is an aarch64 issue. I just went through the same build steps on X86_64 F37 and it builds without anything missing. All I installed was dkms and everything else required for building modules was present.