In the UK, all this is done by putting up street lights. The Highway Code then dictates that the road has a speed limit of 30mph and is residential (no compression braking).
I don't understand your comment about overtaking. Are you thinking of long, straight roads with mostly-evenly distributed houses over a large distance?