A guide for creating a virtual display on an NVIDIA GPU (tested on RTX 5080, driver 595.58) with HDR, custom resolutions, and 4K@120Hz support for headless Sunshine/Moonlight streaming on Linux.
Works on both HDMI and DisplayPort connectors with no physical display or dummy plug connected.
Running Sunshine headless on Linux with NVIDIA is painful: