## Installation
Use chroot method to install void. or add `nomodeset` in the installer screen (press "e" in grub menu)


## Drivers
For most up-to-date info, refer [here](https://github.com/korvahannu/arch-nvidia-drivers-installation-guide).

Or simply do the following and let the other dependencies be computed:
```
sudo xbps-install nvidia
```

## Kernel parameters
Set `nvidia-drm.modeset=1` to kernel parameters in `/etc/default/grub`.
Then run `update-grub`

---

It seems that there's an alternative which is adding nvidia.conf to /etc/modprobe.d with
```
options nvidia_drm modeset=1
```

Still, it is better documentation to do it at kernel parameters level.

## Initramfs
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`

## Xorg
Don't install xorg, but install xorg-minimal to prevent installing unrelated and potentially conflicting video drivers:

```sh
sudo xbps-install xorg-minimal xorg-server-devel xrdb xbacklight
```

_`-server-devel` is to provide package config for `nvidia-xconfig` to work_

_`xrdb` is needed for dpi settings_

I also need this for changing keyboard repeat rate and swapping CAPSLOCK with ESCAPE key
```sh
sudo xbps-install xset setxkbmap
```

By now, `/etc/X11` should not contain any xorg related configs. 
Next, make sure nvidia drivers are already installed, then run:
```sh
sudo nvidia-xconfig
```