That's pretty much it. If someone wants to avoid said taxes, they should build a solar power plant.
It is certainly better than subsidies (because it lets market, not government, to decide on the best solution), although of course for politicians it's easier to create subsidies than taxes.
As for what to do with the collected money, I would suggest lowering other taxes, or just give it to everybody in the same amount.