Don't install xorg, but install xorg-minimal to prevent installing unrelated and potentially conflicting video drivers
Use chroot method to install void. or add nomodeset in the installer screen (press "e" in grub menu)
Install nvidia-dkms nvidia-libs nvidia-gtklibs
Set nvidia-drm.modeset=1 to kernel parameters in /etc/default/grub.
Then run update-grub
Void uses dracut instead of mkinitcpio.
Create a file at /etc/dracut.conf.d/nvidia.conf with the content:
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
Note: surrounding space is important
Then run dracut --force or dracut -f
Brightness
Make sure there's a folder
/sys/class/backlight/nvidia_0. If its not (eg. acpi_video_0), it means nvidia driver isn't working properly.Then, do the following test (change to 50%):
Install
xbacklightpackage and bind keys to the xbacklight commands, for eg on I3: