I don't have a lot of help for that driver right now; but I will be attempting to install the nvidia 340.1080 on Debian on an older laptop in the next week or so.
In the meantime, if any of this is inspiration, I did make some progress on using the NVIDIA driver installer on 22.04. See "If you want to try the NVIDIA installer" section in this post 22.04 (Jammy) w/- latest kernel 6.1: NVidia RTX 2060 - fail - #2 by Stephen_Wade
However, I reckon there will be some quirks with the much older drivers - in fact, I'll be surprised if they still build out-of-the-box with a newer kernel and compiler.