A rock-solid solution for CO2