If you like apple cider, get some, the real shit with "fresh squeezed apples" as the only ingredient. Put some in a small dish and place the dish on the floor of your grow room or even on the plant pots. Gnats will get stuck in the cider and die. Hit them with the GoNats also to get the larvae, and blue sticky traps work too.
Mosquito dunks in your water res will kill any larvae in the soil also.
Guys- Gnats are the easiest pests to control and eliminate. No chemicals, no sprays and no voodoo rituals needed.
The gnat life cycle consists of adults laying eggs in your moist soil and then the larvae hatching and eating your ROOTS!
Both of my parents are nationally certified master gardeners and they can make anything grow and grow well. One of the tricks I learned from them was... SAND.
You basically add about 1 inch of CLEAN playbox sand (can be bought at the big box reatilers, Home Depot,etc) to the top of ALL your pots soil. Make sure you shake the pot around to distribute to every possible entry point in the top soil.
The silica and quartz crystals in sand are sharp, and they harm both the emerging larvae and adults trying to get into the soil. Leave the sand topped containers like this for at least 1-2 weeks and your gnats should should die off. I have used this method for years with great success.
DE is another way, but the sand method actually works better and doesn't shift the soil PH like DE can.
After the 2 weeks are over you can pour off, let the top sand layer dry out for a few days and then you should be able to pour it off or remove with a shop-vac for reuse later if needed.
Good luck!