I've done the hydrogen peroxide bit to my houseplants and it works great for that. I also bought some carnivorous sundew plants to help catch any stragglers lol. I've heard that using mosquito dunks also gets rid of fungus gnats. Nuking the substrate's another option, but they only seem to die back briefly when I've tried that.
I think the life cycle of a gnat's somewhere around 21 days, so even if you think there are no more, the evil devils can pop up a few weeks later and lay millions of eggs before death. 0/10, will fly up ur nose again.