I'm working on a similar programmatic definition of the Atreus here: https://icosahedron.website/@technomancy/101809590723531930
It's still a work-in-progress, but being able to tweak the input parameters and recompile to get the board regenerated is really handy! The circuit board already uses programmatic alignment for placing the switches and diodes: https://github.com/technomancy/atreus/blob/master/atreus.rkt