There is a PPA for nvidia drivers that includes version 340, can be added with the below:
sce-ppa-add ppa:graphics-drivers/ppa
But that does leave the kernel module issue, and upon reading more on the nvidia driver there is more to it besides installing the binary than building the kernel module. With no hardware to test it on, there is really nothing I can do further.