You're dead on. 👏
External lighting has been allowed in Germany for several years on all types of bikes and must only be attached to the bike during twilight, darkness, and f.e. foggy or heavy rain conditions.
You're obliged to have a white reflector to the front and a red reflector to the back...