I cannot address many of the code issues but it is possible to purchase a power strip that is suitable for hard wiring. One brand comes in two versions identical except that one has a plug and one is for hard wiring.