You should be upfront about this with them, before you take the job, rather than trying to cover your ass if they find out about it. Most companies I've worked for in California (where, granted, noncompetes are not enforceable) had me fill out a prior inventions disclosure form as part of signing an NDA. I listed out the IP for my existing personal projects, with the idea that they would respect that and not try and claim ownership of it.
Note that this is significantly more tricky if you work on something at the company that's in a competitive space, ie, their games division.