Successful ubuntu 18.04 with iGPU for xserver and nvidia GPU for CUDA work setup

Many thanks!
Another confirmation that this is working on my machine too.
Similar to that someone has pointed out, those two files did not exist already so I just created them.
When you have time would you please explain a little bit why would this work?