You can buy the aftermarket kit on eBay. Search "golf Mk5 auto headlights". It's a replacement headlight switch with a sensor attached. You pop the old headlight switch out, put the new one in, and run the sensor to the top of the dashboard.
Leave your new headlight switch on auto, then when the sensor detects low light it'll turn on the headlights