Missing X server or $DISPLAY

for KDE you need to login with wayland
can you report

pacman -Qs nvidia

you should have nvidia-open drivers installed

see (Announcement) Maintenance Notice: NVIDIA Driver Restructuring (580xx/590xx