And yes, you can dim a HID lamp.
But you should have special dimming ballast, what has generally fixed supply input wires (connected to phase and neutral of a supply line) and a separate wire(s) for control. For sure well made HID dimmer system will never have a form of a "photocell" replacement.
Phase-cut circuity (possible to fit into PC replacement, working well for incandescent) is not a good way to go, as lamps start to cycle and wear out quickly...