Actually I realized this is necessary. Because I'm testing this out on an arch system that has emacs installed at the system level it was building doom using the system emacs instead of the nix emacs