Gardening has long been a hobby for Jason McCune, which at least partly explains why the coronavirus pandemic has turned him into a thyme farmer.

It started in early March, when coronavirus prompted a run on hand sanitizer and Mr. McCune, 39, happened across a YouTube video on the disinfectant qualities of thyme. He also learned, via a YouTube video sent to him by a friend, that the essential oil of thyme, an antiseptic, might help fight respiratory illnesses. (Although mixing your own hand sanitizer is not always so simple.)

“I thought, if I grow a lot of thyme and drink thyme tea, it certainly won’t hurt,” said Mr. McCune, an engineer at a compost heat-recovery company who lives in Richmond, Vt. He and his wife, Ellen, an early-childhood educator, run a preschool out of their home, but with the school now closed indefinitely, they’ve moved out the children’s dining and play tables and converted the dining room into a thyme greenhouse with a 4-foot by 10-foot bed of seeds.

“I’ll dry the thyme, share it with friends and we’ll make an apocalypse tea blend,” he said.

As isolation orders across the country stretch into their second month and grocery stores race to restock shelves, Mr. McCune has joined countless Americans who are making changes to how they cook, eat and source food to expand their food supply and connect to community.