2/3 of my ride is on a rail-trail with a lot of other bikes and pedestrians during good weather months.
On my last Breezer I had a Shimano disc brake dynamo hub with a B&M shaped-beam light up front and a wired tail light, and I liked the system a lot. The only problem I had was that over the course of two years the wiring and connections to the rear light eventually corroded and required maintenance - kind of a pain and source of anxiety at points.
I have a USB-charged L&M flashlight now on my newer bike and I shaped a cowling out of flashing to reduce glare for oncoming bicylists and pedestrians. It works well for the 1 1/2 hours of commuting that I do, but would not reliably make 2 hours, and I wish the light had an integrally shaped beam.