Either Iran makes a deal to ensure it does not have nuclear weapons, or not having a nuclear weapon will be imposed on it militarily. The U.S. prefers the first option to avoid death and destruction, but either way, the end result will be the same.
Iran has no desire in having a nuclear weapon and is prepared to reach an agreement with the U.S. on this basis. However, Iran must maintain the right to enrich uranium for civilian purposes and this can be monitored by inspectors from the International Atomic Energy Agency.
Iran has no real interest in reaching a nuclear agreement. It is simply buying time through the negotiation process to better protect its nuclear sites so that when strikes come, they will be less effective. It's imperative that strikes are carried out urgently.
There is a 39% chance that the U.S. and Iran will sign a new agreement restricting Iran's nuclear program before 2029, according to the Metaculus prediction community.