The answer to your question really depends on the effective cost of electricity with your solar panels. When you purchase solar panels you are effectively prepaying your future electric bill in advance.
If the cost of your solar panels works out to be less then the cost of electricity then you might have an advantage in terms of mining profitability, however earning a profit mining with solar panels is far from a sure thing.
Solar is expensive. I have 5.9 KW on my roof. In the winter like now, I get 25 or so KW/h generated a day. This would not keep an S9 running. My system is grid intertied so over generation in the day feeds the grid, and the grid gives me back one KW/h for each I feed in. At the end of a year PGE will pay me 3 cents per KW/h for anything I didn't use. Since I had my system installed, I have never gotten a payment. I always end up using more than I generate.
Installing a system on your roof requires permits, and the utility needs tons of paperwork to approve you as a power company. My array installed was a little over $2 per watt. So expect to spend 13 to 14k for a system.
Batteries are a mistake. They raise the cost with no real improvements in effective use. They also have a much shorter lifespan than most of the other equipment.
Expensive is a relative term, but for much of the country (in the US), it will
probably cost more over the long term to use solar power on your property verses using the existing electrical grid.
The costs that you mentioned (when applicable) should be added to the cost of the solar panels when trying to calculate the total cost of your solar power. Some states/localities use tax credits and/or regulations (more specifically, the lack thereof) to encourage more consumers to utilize solar power. Not all states will make it difficult/expensive to get the necessary permits to install the solar panels on your property, and some states will give significant tax credits for installing solar panels.
Most solar power systems have a 25 year warranty. You can do your math however you like to figure out the electric power cost. For my system for example if we use the most conservative numbers $13000/25=$520. If we assume I will make 500 KW in the winter and 700 KW in the summer we get 7.2 MW/h a year. That is $.072 per KW/h. That is a great price for electric in CA. My rates vary between $0.19 and $0.40 depending on time of day or rate tier pricing. The problem is you going to live in your current house for 25 years?
Based on your numbers, it almost certainly makes sense for you to have as many solar panels on your property as possible (depending on the specific policies on selling excess electricity back to the grid).
Regarding living in your house for 25 years, even if you only stayed in your house for 12.5 years, then you would have saved some amount of money, ignoring the cost of paying for 12.5 years of electricity in advance. Also having solar panels on your property should at least in theory increase the value of your property, especially with electric prices being as high as you describe them.
I sized and calculated the ROI of my solar power system based on $0.40 electricity. At that rate my system pays for itself in 3.5 years. So I need to live in my house for more than 3.5 years to see ROI. But at that rate mining on the system is pointless, even with the very best miners available. I have a number of miners, and every one of them is colocated out of state to get good power costs, or is someplace where it gets "free" power.
A better way to calculate the profitability of mining using solar panels would be to calculate the cost of electricity using your solar panels (in your case, you say it is $0.072 per KW/h), and check if it is profitable to mine with that price.
Some people I talk to say they want to mine directly off solar, but that means only mining in the day and wasting over generated power, or using batteries that are costly and difficult to maintain. The simple bottom line is that you need very cheap power to mine, and that isn't going to come from solar panels, even if you buy $100 dollar ebay specials from Vietnam.
Some jurisdictions will allow consumers to generate excess electricity, send it back to the grid, then use that excess electricity from the grid at night.