That's extremely counter productive. The most bang from your buck for solar is for utilitity plants. So raising taxes just to put solar on SOME new homes which benifits only the new home purchasers (majority of whom are quite wealthy) with their electricity bill and house value is dumb. Basically you're taxing everyone rich and poor equally (landlords pay property tax too) just for a soundbyte headline which accomplishes literally nothing.
If you're taxing everyone, at least make it efficient and build utility plants but even that is dumb because it subsidizes solar and likely puts the money into the wrong person's pocket.
If you were taxing everyone and wanted to help the environment, building public infrastructure, transportation, roads, bridges, trains is the best option even if it doesn't look as catchy. It'll produce a hell of a lot more benifits than a few MW of super expensive solar.
If you still want a headline, build transmission lines. Texas in 6 years went from dead last in renewables to first with over double California because the governor invested $7B in transmission lines making renewable energy an economic decision not a subsidized one