That's the way Void Linux does it. That ensures that the default kernel series always works with ZFS and NVidia modules. If you want to go off-reservation, you can do so but you're on your own, then.
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
And you're done.