New comment by ericonr on void-packages repository https://github.com/void-linux/void-packages/issues/22307#issuecomment-634405446 Comment: Could you take a look at how the `zfs` and `nvidia` packages configure DKMS? I believe they add themselves and their `dkms.conf` to `/usr/src/`. You can check which files are inside a package with `xbps-query -Rf zfs`. Then you can check how similar or different your setup is to those, and go from there :D I don't know much about DKMS, except that it's working for me.