Small nuclear plants have been tried and failed
multiple times.
China and Russia use them quite effectively.
You dock them right on the shore and it powers an entire remote village / small city.
As another user pointed out, they've also been used by the US military for many decades to power carriers and subs without incident.