Nuclear detonations are a lot more survivable than most people think. Having even a small hill in between you and the detonation can make a huge difference (although most modern nukes are designed/programed to detonate 1km or many km in the air, so distance and a hill are your two friends, according to Pythagoras).
That being said.... living in a post-nuke world would be difficult and terrible. If you can't be really really far away from the detonation, then maybe being really really close is the next best thing.