That's how the world works.

https://mander.xyz/post/49309982

Natural gas is used to produce hydrogen, which is then used in the Haber-Bosch process to produce ammonia from nitrogen in the atmosphere. Only about 6% of natural gas is used to produce hydrogen, so even if the price were to rise substantially, we could divert natural gas from other uses and have plenty for making ammonia. We also have other ways of producing hydrogen, it’s just that natural gas is more established.

PEM electrolyzers paired with cheap solar in countries with high insolation can now produce hydrogen for less than the cost of natural gas, but we’re only recently starting to see the construction of the large-scale green ammonia plants needed to accomplish this. Egypt is currently constructing a 100-MW green ammonia plant powered by solar energy. Even if you didn’t have enough PEM eletrolyzers you could still just pass current through some salt water and produce hydrogen, albeit much less efficiently.

It’s not going to be a catastrophic issue.

Also, while it’s still new, plasma nitrogen has the potential to rapidly scale if the economics stop making sense for Haber-Bosch nitrogen.
Using plasma technology to feed the world

Using state-of-the-art plasma technology to make cheap fertilizer for small farmers may sound like magic, but it has now become reality. Researchers at Eindhoven University of Technology (TU/e) have built a small plasma-powered plant that produces nitrogen-based liquid fertilizer only using sun, water and air. "The plant is easy to set up, sustainable and very efficient," says TU/e researcher Fausto Gallucci, who together with partners in Africa, Germany and Portugal has done successful tests of the device in Uganda. "We now want to bring the mini-plant to the market, so that it becomes available to farmers around the world."