How to automatically rebuild the NVIDIA proprietary drivers on kernel updates?

I have been considering to give openSUSE a try, but I need to use the NVIDIA proprietary drivers (Pascal support on nouveau is still too incomplete). So, how to setup the NVIDIA proprietary drivers on Tumbleweed so that they get automatically rebuilt on every kernel update?

Something that comes to my mind is using DKMS or AKMOD, but how do I configure one of them to do just that? Any other suggestions or tips?

Thanks in advance.

I haven’t tested in a long time, but see the last paragraph in the following SDB: Nvidia

https://en.opensuse.org/SDB:NVIDIA_the_hard_way

TSU