Nvidia and Sway
Sway requires KMS. For some reason this requires flag for kernel to be enabled:
In /etc/default/grub add to kernel list and reload grub with update-grub:
nvidia-drm.modeset=1
You can run cat /sys/module/nvidia_drm/parameters/modeset after reboot to see if it got enabled.
Sway needs to be started with --unsupported-gpu - nobody likes Nvidia.
Void Linux driver setup
Install nvidia package. Also nvtop comes handy - should how your card if driver is loaded correctly.
Make sure linux-headers are installed and system is up-to-date (right kernel and headers combo).
Use xbps-reconfigure linux to see if DKMI driver was build correctly (no warnings about it).