A Mars city could not survive on stored meals forever. It would need hydroponics, aeroponics, algae and microbial protein, careful crop selection, greenhouse power, and closed-loop nutrient recycling to turn waste, water, carbon dioxide, and light into reliable food.
Mars settlers could not import all their water from Earth. A real settlement would need to map shallow ice, mine it, purify it, recycle nearly every liter, store reserves safely, and use water for drinking, crops, oxygen, shielding, and fuel chemistry.