I think you just invented shampoo...
Fungus Gnats are a problem when you keep your plants too wet and there is an abundance of decaying vegetation and fungi. Repot in fresh soil with an added couple handfuls of perlite and sand. Let the plant dry between waterings.
Daisy