There's a socket right next to the building, you can place the router below it and connect the generator to the socket that way!
Yay! Thanks for the excellent guidance. I hope you add it into the game as well.