Anybody running generators and electric lights will attract the bad guys like a streetlight attracts moths on a hot summer night. You will quickly be surrounded and your fate will be sealed.
Guns and ammo will only delay the inevitable. Hungry and desperate people will simply wait until the ammo runs out and then they will close in...and if you took out a bunch of them in the meantime, they won't exactly be in a neighborly mood when they reach you.
So what to do? Still prepare and build yourself a nice cache. But keep a low profile and pretend to those outside your circle that you are just as hungry and desperate as they are. Don't be running generators or lights and don't be bragging on how you were smarter than everybody else by being prepared.
Having a valuable skill like this will make you valuable and indispensable.