How to install NVIDIA drivers always headless

I am using headless Fedora (init3)
I tried anything I can (from Google) to install NVIDIA drivers in different ways (including Rpm fusion, Official rpm and so on)
It always installing X11.
Then after I reboot, due to disabled nouveau, The resolution of the screen turned into very low.
xrandr and xdpyinfo always reporting that it cannot find a display even i exported with “:0”.
NVIDIA-smi command runs good, Nvidia-settings command cannot find a display too.
There is really no way to let me install it with all headless?