From memory I think this is not supported with Prime, you should do a ‘reverse Prime’ so that Nvidia is the main card and you can fallback to the integrated GPU (Prime does the opposite, you use the integrated GPU and can fall back to the Nvidia GPU on demand).
I would search for more info about reverse Prime so it may shed more light on the topic.
EDIT:
Also searching this forum here can be a good start too