They put the panels outside here.
And we are near the salt water. It does not do any good for the breakers or wire.
I do not think it is a great idea if you have a choice, Even if code says it is OK.
With all of the smart meters now a days, The fire dept will kill the power, by remote, and don't even need to get to your panel, or smart meter.
Have Fun.