It's about how fast you freeze the ice cream so the crystals don't grow.
--
You can get N2 from a local gas supplier but a lot of grocery stores stock CO2 (Dry Ice) that can also be used for ice cream.
CO2 has the disadvantage of if you get it in the ice cream it makes it carbonated but the smoke looks like a witches cauldron so it looks cool imo.