But a headlamp is not legal lighting. At least not here in northern Europe.
You still need a complete and certified lighting system in addition to the headlamp.
Plus, a headlamp points straight down when you turn your head down to shield against wind and/or rain/snow, and points to the sides when you turn your head that way.
If it's too bright, it could shine into the eyes of people travelling in the opposite direction, which is also illegal, not to mention dangerously stupid (they could end up crashing into you if they're blinded by your light!).
And lastly, if you wear a helmet, which you should, you might find it difficult to fit a headlamp at all...