I have a story taking place in a vast desert. There are however a few large and highly advanced cities within this desert with running water and electricity and I was wondering if this would be possible given the environment. What sources of water and where would they be (ex. underground). I have no idea about sources of electricity.
They would need to be able to produce their own food since it is difficult for them to import from elsewhere.