The world will not let Iran have nukes. Iran is finding this out the hard way. The longer it takes for Iran to accept this fact, the less pleasant of a scenario it will be forced to accept. Ultimately it becomes a matter of Iran remaining as an independent nation.
While the Ukrainian war was starting to brew, I recommended the West trading Iran to Russia for Ukraine. This is starting to look viable again.
The West would prefer Iran turning into a Western democracy. Everything is currently in place for this to happen.
If Iran doesn't solve its own nuclear problem, the world will solve it for them.