I like the snap-in switched outlets like those used in Voron printers. I wanted something similar for my RatRig VCore-3 build, but I didn't find anything. So I modified the Voron power inlet to allow mounting to two 3030 extrusions. This one is designed for M6 screws on 77mm centers. CAD source is provided if you need to adjust the screw hole diameter or spacing.
This is a fully enclosed version of another of my models. There is a zip tie slot, located just inside the back of the enclosure, which you can use for strain relief on the wires. The design uses Voron standard heatset inserts (M3 x 4 x 5) and M3 socket head cap screws (6 or 8mm).
It requires an additional 14mm of depth to accommodate the wires and the cover.
I am using it with this power socket: https://www.amazon.com/dp/B08CDTJLN9
The author marked this model as their own original creation.