In 2020, SpaceX did 26 launches. Only six of those had NASA as a customer. The rest were a mix of US military, commercial customers, foreign governments (Argentina and South Korea), and Starlink. Even if you add up NASA and US military, that's still only nine out of 26 with the US government as the customer.
So while no doubt SpaceX does benefit from NASA's business, it is now only a minority.