This simple bit can replace the quick release nut and attach a headlight.
Why should I do that? Maybe your handlebar is already tightly packed with bells, smartphones, cycle meters, map clips, mirrors, coffee cup holders, etc.? And don't you think it looks good?