I can't tell for sure, but here are some possible things you might be missing:
1) Cost of electricity: Does it reflect your actual cost per kWh? Is it scaled to increase by the forecast rate of inflation through the future?
2) Replacement of micro-inverters, the occasional squirrel-chewed wire, etc.
3) Can you get rid of your natural gas bill by switching to all electric? Are you also powering a car?
4) Panel degradation: Assume maybe 1% per year.
5) Production: It generally requires a professional quote to factor in cloud cover, latitude, shade, and all sorts of other factors. If you just applied an arbitrary percentage of maximum capacity here, then a minor tweak in assumptions could change everything.
6) Net Metering: Texas is an inconsistent mess. This blog may help:
https://www.solarreviews.com/blog/texas-net-metering-complete-guide7) Most utilities will not allow you to sell back more than you consume in a given time period. Thus if you scale for 100% of your energy needs, you may end up producing more than you are allowed to sell back. You might get a better ROI from a system that covers 80% of your usage than you could get from a system that covers 100% of your usage if it eliminates those circumstances.
8) Insurance: Your homeowner's policy may go up by a small amount to cover damages to your system.
9) Compounding: Due to inflation in the price of electricity, your system will probably generate a yield that increases over time. If you compared this to a nominal yield, such as a preferred stock or bond paying a flat 6% which never changes, you are comparing a flat nominal return to a return that is scaled to rises in the price of electricity.
10) Sequence of Returns Risk: Your alternative investment might be a bond or stock portfolio paying 8%, but those sources of income are tied to market outcomes. As a retiree, your success or failure will depend on whether a "SORR event" occurs early in your retirement and the extent to which your portfolio outcomes are tied to market outcomes. You can't do anything about the first condition, but you can do something about your portfolio. Your solar panels as a source of income are an engineering outcome completely detached from the stock/bond markets, and will generate earnings for you regardless of how much your portfolio is losing in a downturn. This means less selling of assets during downturns, which means higher portfolio survivability.
My spreadsheet approach is a little different. You adjust the discount rate until the NPV of an option is near zero, and that's roughly the rate of return. It worked out to 6-7% for me, so I went for it.