Or you can do what NYC did and (sell the right to) put USB charging ports on every other block or so. In that case, you just have to source USB condoms instead of a whole rigamarole involving pedaling and stuff.
https://arstechnica.com/information-technology/2017/06/bt-ad... (old article, they're in a lot of major cities now and have been for a long time)
https://www.link.nyc/home.html
It's not just USB charging, it's also pretty fast wifi.