You don't even need to sell food at HDB flats.
All you need to do is return to the good old days: allow people to sell food and snacks at the town centres, or door to door selling of homemade snacks etc.
I think in the 1980s, I remembered seeing farmers selling eggs and veggies at the town centres.