A nuclear agreement seems almost moot at this point. Iran's ability to enrich uranium has been effectively destroyed for the time being. The 60% enriched uranium they did have is buried under rubble and not easily accessible. Could they restart enrichment? Well, sure, eventually but probably not for years and it would continue to be vulnerable to attack.
In my opinion, Iran is unlikely to keep to any agreement they sign regarding their nuclear program anyway. Iran (and their potential for nuclear weapons) has been removed as a significant regional threat which I believe was the main point of all of this. An agreement likely changes nothing and the Trump admins primary goals have already been achieved. It will, of course, be easier if Iran does not obstruct traffic in the Strait of Hormuz but in the long run, i don't believe they have the ability to keep it closed.