Can both spouses in a community property state (California) make contributions to solo 401k if one spouse earned all the money?

We are both over 50, looking to max our Solo 401k contributions.