As far as I know, the big damage from Nuclear Weapons planetside is the massive blastwave that can pretty much scour the earth, with radiation and thermal damage bringing up the rear.
But in space there is no atmosphere to create a huge concussive and scouring blast wave, which means a nuclear weapon would have to rely on its all-directional thermal and radiation to do damage… but is that enough to actually be usful as a weapon in space, considering ships in space would be designed to handle radiation and extreme thermals due to the lack of any insulative atmosphere?
I know a lot of this might be supposition based on imaginary future tech and assumptions made about materials science and starship creation, but surely at least some rough guess could be made with regards to a thernonuclear detonation without the focusing effects of an atmosphere?
From a NASA paper on this very subject:
If a nuclear weapon is exploded in a vacuum-i. e., in space-the complexion of weapon effects changes drastically:
First, in the absence of an atmosphere, blast disappears completely.
Second, thermal radiation, as usually defined, also disappears. There is no longer any air for the blast wave to heat and much higher frequency radiation is emitted from the weapon itself.
Third, in the absence of the atmosphere, nuclear radiation will suffer no physical attenuation and the only degradation in intensity will arise from reduction with distance. As a result the range of significant dosages will be many times greater than is the case at sea level.
Sounds like you’d end up with just a big blast of radiation
Others have answered you question about non-directed nuclear blasts in space already. They don’t work the same way as in atmosphere; lack the blast or the thermal heat, etc. Enter the Casaba-Howitzer, a theoretical nuclear shaped charge that shoots a directed plasma stream at near light speed. This idea came about in the 60s along with nuclear blast propulsion.
Yamato cannon operational
Question is already answered, but. The BSG miniseries has a good nuke scene which is actually pretty reasonable: https://youtu.be/R-L4tVksGYc
If I’ve learned anything from watching nuclear blasts in space on sci-fi shows, it’s that hasshak, dal shakka mel!
You probably need to wrap the nuke in multiple layers of material. Some inner layer to absord as much energy as possible and transfers it as kinetic energy to an outer high-density layer to create extremly fast shrapnel.
Atomic Rockets has a whole page for this
https://projectrho.com/public_html/rocket/spacegunconvent.php
The electromagnetic pulse may not cause physical destruction, but it would likely disable any spacecraft without enough shielding in the blast.