Can I install electric equipment on carpeting?
The NEC is only part of the picture the NEC defines the minimum standards like the breakers being in a panel or box. The 2 places in your house a breaker panel can not be located is in a clothes closet (closet with flammable storage) and a bathroom. Other than that the panel can be just about anyplace Except on a stairway. Your panel can be mounted in the living room or any other room with carpet. If all the equipment is UL listed and you use NEC approved methods your build would be ok But you need a permit for most states to be legal, so you need an electrical permit and have it inspected (yes even for solar).