Cosmic rays from supernovas will help secure the supply of crucial minerals.