During installation of Arch when it asked if I wanted to chroot into my distro I did. However if you enter commandline by hitting CTR+ALT+<F1 or F2 or F3> to change to a virtual console. If you are doing this from a chroot environment you don’t need sudo.
edit the mkinitcpio.conf
sudo nano /etc/mkinitcpio.conf
In the MODULES=() section I added “nvidia nvidia_modeset nvidia_uvm nvidia_drm” without quotes. So it looked like this: