From the Arch wiki
Use nvidia-prime to switch between cards. External outputs are connected to the nvidia gpu.
My X1 extreme gen 2 has PRIME, and the experience is miserable. I got so used to everything just working with intel integrated graphics, but I wanted to be able to use cuda on my laptop. With hacks you can get external displays working, but my understanding is that the current solution is to run a second Xserver for the dedicated GPU and blit everything across. The display is too laggy for anything other than a static presentation.