I too am live and let live, but I do think that when you decide to live in a township or municipality, or even an HOA governed gulag, you have to buy into the system. There is no guarantee you will live in that home your whole life, and when the time comes to sell someone else gets the headache, so I can fully understand the regs.
Now, if I were of means, My house would have wind, solar and batteries, plus watchtowers and a couple of crew-served projectile vomiters to keep people off the property. I wouldn't do it because I'm green, cause I'm not, or to save money, which you can't, but purely from a zombie apocalypse, FTW point of view.
If you want to separate yourself from the dregs, the first step is to get away from the dregs.
I watched some hippy documentary some time back and they interviewed one of the OG's of the movement. The interview was done in his home, probably somewhere in the Mendocino hills. His house was open timber, like a roof over two stories, huge overhangs, and he could pull his truck right into it, like a garage without walls. I liked it when I saw it. They collected all their rainwater off the roof and the adjacent creek and filtered it.
I see no reason for anyone to go interfere with that situation. But it obviously meets no known code. That won't work in Sacramento, but for any old hillbilly it's just fine.
Brent.