I actually refuse to separate out any of that, that money which is coming from an entity which is getting provided that money by taxpayers is the primary funding. Those contracts for service or grants for research are all ultimately controlled by an entity who can either collapse to the point where that money is no longer available, or absorb the business in an authoritarian way, or simply put money behind a different billionaires infrastructure. By making it really hard for the last guy and really easy for the next guy, they really don't lose that much time.
The real value of musk, the tesla stock price, was based on having a near monopoly on cars and charging, that's been mixed to AI and humanoid robots. One of which doesn't turn a profit and the other of which doesnt exist.
Space X, the only company that produces anything of value in Musks portfolio only exists because of tax payer money.
Dude is on thin ice, it's getting thinner, and the American government will be under it when it falls to screw him just as hard as it helped him.