It’s actually illegal to drill a well in a municipality that provides water service. You’d have to move to a rural area.
For example, If I got many solar panels and backup batteries to power my house, I would still be required to pay $5 a month to the local electric company and would not be allowed to disconnect from them.
That may be true for water and gas, but is usually false for electricity.