I run my Dinotte head and tail light on one lithium battery using their Y splitter. The lights remember their setting when disconnecting the battery; you don't have to fiddle with switches.
I used to have a Pioneer dynamo that came with an auto-on headlight that used a photo-resistor. Problem is it kept flashing on and off at dusk so I just switched it to manual mode.