I've never seen a Nimitz at Portsmouth, however, they would frequently anchor in Spithead. I think the last carrier to actually go alongside would have been an Essex or (at a pinch) a Midway. Portsmouth has a very narrow harbour mouth and the channel would need to be heavily dredged.