Ground – brown headlight wire (position 6 on harness connector)
Switched 12V – black/purple headlight wire (position 4 on harness connector) -- use an inline fuse
Dimmer – gray headlight wire (position 10 on harness connector)
OR run a proper power wire to the fuse box, and ground it to the dash (metal)