Just a bit more complicated than that, but not much, and depends basically on the type of driver you are using. Meanwell HLG "A" type drivers have an internal dimmer, and its just a matter of turning a know with a small screwdriver.
HLG "B" type drivers require an external potentiometer, having three sets of cables coming out of the driver -AC in, DC out, and dimming- which sounds complicated but is actually preferred by a lot of us... for a single driver installation (I assume you are using a meanwell driver), find a 100k potentiometer on an electronics store, ebay or other places like RapidLED (HLG might carry them too) and hook it up with wagos, solder or something else to the DIM side. If you can´t solder it´s probably a good idea to get them from rapidled, or ask the guys at your electronics store to solder a two short cables to the pot (to the center and one of the side legs, it doesn´t really matter which, as this only changes the direction of the dimming).
This is probably something worth trying before spending several hundred on an AC (and then some more on electricity to run it each month). Don´t forget about an oscillating fan for air circulation, you really want to have that (but better not blowing directly at the plants, or at least not at full blast.... think breeze instead of hurricane).