It is possible to use HDMI, DSI and GPIO to connect displays to Raspberry Pi. To use HDMI output value must be 0 and for the other type of displays value usually is 1.
On Windows and Linux desktop, having zero value will make nanodlp choose secondary display automatically. For force nanodlp use primary display use value 1 and for secondary use 2.