I run a roofing company that installs solar shingles (not the Musk kind — these are from mainstream roofing supply manufacturers). The total cost of a new solar roof is surprisingly close to the combined cost of a new roof plus traditional rack-mounted solar panels.
There’s a small premium — maybe around 5% per watt — for going with solar shingles instead of panels. But in return, you get a few practical advantages:
Better aesthetics (they blend in)
Higher wind resistance
Simpler logistics (one contractor instead of two)
And most importantly, you’re not voiding your roofing warranty by drilling dozens or hundreds of holes into your shingles and rafters
It’s definitely not for everyone, but for people already needing a new roof, it can make a lot of sense.