In a 2 gpu system, how to configure which GPUs will be used to connect monitor?

I have a 2 GPU system(lets call them gpu1, and gpu2), mainly for deep learning tasks , by default the monitor/display is connected to gpu1, but i want to connect it to gpu2 and cant find how to do it,i tried just “plug and play” but the system wont render anything, i tried with nvidia-settings but cant find there any way to configure, so the question is simple, how can i specify which of my 2 gpus will be the one used for displaying/connectiong monitor?

Use a minimal xorg.conf like

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
    Option         "AllowEmptyInitialConfiguration"

The BusID option tells the xserver which gpu to use. Look it up by using
sudo lspci
Note: lspci displays values in hex, BusID takes decimal values.