Shimla : The Union Ministry of Renewable Energy has agreed in principle to develop Shimla and Hamirpur towns as solar cities and Dr YS Parmar University of Horticulture and Forestry, Solan, and National Institute of Technology (NIT), Hamirpur, as energy parks.