Easy brother! Get mosquito dunks, put one in an old nylon sock or strainer bag, break it up a bit (crush it in your hands), secure it in your res, done! Leave it in the res for the entire grow, it has a bacteria in it that will only affect the gnats!
Gnats will be gone!
I used to have...