To survive long term in an apocalyptic collapse of civilization you need to already be surviving in a manner that acts like the apocalypse has already happened.
In other words, if you don‘t currently have all the skills and community to live in a pre-industrial era, like farming (all the seeds and tools, cleared land), smithing (do you have a forge? Know how to make charcoal? Raw materials and skill?), animal husbandry (do you know the first thing about draft animals? Have all the tack and harnesses to put them to work?), a mill, textile making, etc… you are going to die. You cannot learn these things when it‘s too late, this way of life cannot be picked up as things are falling apart. These skills are why communities existed that could specialize skills and trades to make life livable and make it survivable as possible.
In a full nuclear apocalypse scenario there will be a nuclear winter that will kill the overwhelming majority of the population due to starvation. Radiation related illnesses will wipe out most survivors.
One cannot solo garden their way through a true collapse. Pests will destroy gardens, food preservation will be an issue, injury could be lethal.