nightly.sh: build with local compute capability (#6608)
The defaults are 35 and 52, and XLA's NCCL build fails on CUDA12 because it doesn't support 35.
Fix it by setting the appropriate environment variable to the local capability. An alternative would be to set many capabilities, but that would increase build times.