It's one of those "it depends" answers, which most people don't like...
It can be done, but management CAN be difficult and expectations/market demands CAN be difficult to meet.
Market demand:
Some "food purists" won't buy eggs if the
chickens are not fed an "Organic"
feed.
Some vegans who do eat eggs won't buy eggs if the
chickens are fed meat, meat scraps or cooked leftovers that contain meat.
Other people who are "toxicity minded" shy away because of the potential of chemicals passing from the waste food into the eggs.
Management:
Comming up with a waste - food to chicken feed conversion is almost impossible to get perfect, so figuring out how much waste food to get for X number of chickens is problematic at best.
Too much waste food can attract scavengers and predators, too little and the chickens will need supplimental feeding.
Finding an economical way to store excess waste food another potential problem.
I have seen videos where
compost piles with waste food in them were made, then chickens were let in every few days to turn the piles, eat the waste food and the associated bugs that have been attracted to the waste food. It SEEMED to work well.
I believe it CAN be done, depending on management, resources, time, environment, dedication, economics, ordinancez and probably another two dozen or so factors I haven't thought too much about.