Most people way overthink this stuff. Ever have lightning strike a tree or a building near you? Not a direct strike, but very close? That's the kind of EMF pulse you'll experience, and it won't "fry everything". That's Hollywood sensationalism.
If you're close enough to a nuclear strike that it "fried" all your electronics that weren't completely shielded in a Faraday cage, you'd be close enough that you'd be obliterated or have radiation burns so bad that you wouldn't want to live anyway.
I'm a broadcast engineer. We have all kinds of measures in place to protect transmitter plants from lightning, power surges, etc. At a broadcast transmitter plant, you've essentially got a huge lightning rod (towers, antenna) that's directly connected to your PA (power amplifier) and indirectly coupled to everything else in your plant. Solid state transmitters have been around since the 1980's, starting with the Harris MW-1, which was a 1,000 watt AM transmitter that was pretty crude by today's standards. For 20 years now, transmitters with powers in the tens to hundreds of kilowatts have been developed and are in operation. Most tube stuff has been replaced with solid state (which I kinda find sad, because I'm a nostalgic sucker for glowing tube filaments), with the exception of some TV transmitters in the UHF spectrum which are still using Klystron tubes because they're more efficient, and some older plants that are still going because either the transmitters have been maintained well and are still reliable, or the owners are too cheap or broke to replace them.
I've repaired plenty of damage from direct lightning strikes, and also have stood inside transmitter plants and watched sparks jump around in between poorly grounded equipment racks and STILL had nothing suffer damage. Now remember, this is equipment attached to what amounts to a HUGE EMF pulse collector (antennas and towers), and still this equipment survives direct lightning strikes. Yes, it survives mostly because we have ways of shunting those pulses to ground and dissipate harmlessly, but it's not as difficult as you think, and EMF isn't nearly as destructive to solid state devices as Hollywood has made it seem. Most transmitter plants have a big inductor shunting static buildup to ground without affecting the outgoing RF power. Most AM transmitters, where the entire tower or multiple towers in a directional array is the antenna, there is a pair of metal balls at the base of the tower, placed just far enough apart that the voltage from the outgoing RF doesn't make the leap, but any static buildup or a direct lightning strike just gets dissipated as a big, fluffy spark that jumps across "the ball gap" as we call it.
Now compare those big towers and antennas to your cell phone, or even the wiring in your vehicle. There is very little conductive material in a phone to induce enough of a pulse from a nearby strike, whether it be nuclear or lightning, to cause damage. Same with a car or an RV.
I do take steps to protect this bus from lightning, which I am way more concerned with than a nuke strike, including making sure the body is properly earth grounded, and any cables/wires traversing through the body to the outside are run through hand-wound ferrite core toroids designed to be reactive to very low frequencies. There are plenty of simple ways to protect yourself and your stuff, but seriously though... Don't obsess over it. Take sensible steps for lightning protection, and you've also protected yourself against a nuke EMP, as best as you realistically ever could or need to.
My $.02. TIFWIW