At least neem oil works the same as horticulture oil, not sure if it is good for gnats.

Qing