Surface pressure on mars is 0.087 psi. That's 61 million kilograms per square kilometer. Surface area of mars is 56 million square kilometers. That's 3.4*10^15 kilograms of martian atmosphere. Of that 2% is nitrogen. That's 69 billion metric tons of atmospheric nitrogen on mars. The earth used about 190 million metric tons of agricultural nutrients of all forms last year (page 12). Unless you are envisioning a population of many hundreds of billions that's a lot of nitrogen. If you want to teraform the planet you'd need a lot more and you'd have to hope there are rocky deposits of the stuff. But for greenhouses that's plenty to sustain centuries of exports.
Sure, it's there. But that's a lot of very thin atmosphere you have to process to get that nitrogen. To get that nitrogen out of the air, you'd probably use the Haber Process. This requires a lot of pressure, heat, and power. The atmosphere's not fun to work with, either - at 95% Co
2 it's both too thin to breath and if you tried it'd poison you anyway. It's also poisonous to plants, but that's beside the point. It's over four times the partial pressure of CO
2 to kill plants, in fact. Not good for the lungs.
There's a hell of a lot of difference in pressure between the martian atmosphere and the pressure you need for the Haber process. The Haber process is generally done at around 200 atmospheres. That's with the 78% percent nitrogen content of Earthly atmosphere. You're going to need a lot more heat and pressure to make it possible on Mars and that makes the whole process much more difficult.
You'll need a lot of energy (Haber process consumes between 1 and 2% of the world's energy use It ain't cheap.). How would you supply this? Solar, maybe, but that's a lot of solar panels you need to take, and then maintain against the sand-blasting of Mar's surface. Nuclear fission isn't practical on Earth, yet, never mind sent across space to Mars.
Fission is a maybe, but if things go wrong you've then got radioactive material strew across the place. There's a few other problems - how will you keep it cool? Water? It'll need a lot of water. Martian air is pretty cold, but thin air is quite a good insulator.
These things aren't as simple as it appears.