Sorry, for the lack of detail on my end.
I have resolved this issue by booting from another USB, somehow the USB stick I was using to boot into the NixOS installer was corrupt. so I tried using another one and it worked.
I really appreciate your help though.