Clauses like that aren’t allowed in California. California law says that anything I do in my own time, on my own equipment, and not related to my company’s product is something my employer is not allowed to own.
I make this crystal clear whenever signing an “inventions” clause, and I avoid companies which make, say, DNS servers, for exactly that reason.