By dumb luck it turns out I can partly disassemble the gate valves and mount them perfectly flush to the habitat wall without boring a huge messy hole, and thanks to included o-rings, possibly without needing silicone sealant except for where the bolts penetrate.