Where exactly do you live? I'm not saying you're lying, but this smells like a tall tale. You can easily buy solar panels and batteries, and if no government inspectors are coming by anyway, then it doesn't matter.
Maybe what you're saying is, "my power company wouldn't let me use grid-tied solar without it being permitted." ?