You can't buy gold coins or bars through the TSP.