Nuclear is very expensive per MWh and thus per litre of water generated
Solar on the other hand is very cheap, and you don't need to desalinate 24/7 -- just do it when power is cheapest (which is during the sunny times if you have large amounts of solar, during windy if you have large amounts of wind, etc)