Power supply in enclosure