I always keep a few carnivorous plants around because they're fun to grow. Sundews, in particular, seem to be pretty good at catching fungus gnats.