One angle you might consider if you want to end up at NASA or SpaceX is to get a job at a University department or specific research group that has close ties. These groups usually pay pretty well and are often in need of good programming help.
That's an idea I haven't thought of. For now though my concern is finding a way to stay in the area. I imagine companies will be more likely to interview me if they don't have to pay for a plane ticket haha