Late but, People here freaking about the box being closed and overheating, then suggesting to add a switch to shut if OFF if the lid is closed. Hell no.
MF please, all these power supplies have built in over temp cutoffs. Put a grill in the top of the box for air flow, and Close the damn box solid. I guarantee you a crawling child would love to open that box up and touch live terminals. Even if you have a plastic cover over the terminals, if that plastic cover can be removed without tools, that kids gonna touch live shit.
Cognitive Dissonance be damned, you cant have live parts accessible without tools and you cant have flex appliance mains cables just "bolted" to the frame - (that's just the same thing as lugged off, ie connecting the cores of the flex to the appliance terminals). You must have an auxillary cord clamp in the external enclosure clamped over the secondary/outer cable sheathing to stop the cord from being ripped out of (potentially poorly) terminated cable lugs. Heat shrink does not count for shit.
This is not enough. As I said above, a clamp over the mains lead outer sheathing, in the external most enclosure.s frame. Look at the cord clamp on any electrical appliance.
And no-one cares where you put the thing or how you use it, especially murphy's law. Follow electrical safety guidelines.
Sincerely
An Electrical Inspector.