Benjamin Franklin was once asked how long a man's legs should be. His answer was simple: "Long enough to do the job." Unsatisfied, the questioner continued, "And how long is that? Franklin replied, "Long enough to reach the ground." The questioner continued, "What then his manhood?" Not missing a beat, Franklin replied, "The same."
Similarly, I think that holds true for power cables. They should long enough to reach the outlet. And from there, the electrical wiring should be long enough to reach the power generators. As for how that cabling should be configured, I leave that to you and your power company to work out.