Voting laws are passed by each state.

In California, “A person entitled to register to vote shall be
a United States citizen, a resident of California,
not in prison or on parole for the conviction of a felony,
and at least 18 years of age at the time of the next election.”

Cal. Const. Art. II, §4: Cal. Elec. Code § 2101