You'll need to have liberated the sectors of Parker, Dust, Oasis, and the Badlands first. After that, some of the EDF soldiers you face in EOS will be carrying gauss rifles. You can also find one in Oasis, where your own allies have it. A good tip: use them against the EDF sky fighters—they work really well there.