Been tried before. You can't just plug in any generator into a wall socket according to our beloved network companies. Someone might get hurt! ;)
There is a world of hurt trying to legally connect generators to the grid - far more than there is upside. It took decades for network companies...