A Carrington Event DOES have the potential to eliminate the electrical infrastructure.
But it is several orders of magnitude more powerful than nukes.