I solved that problem by bootstrapping a startup with consulting/development for other startups that are viable but weak technically, this gives me a lot of variety in side work while also funding my main startup.
In addition I'm currently in the process of setting up another 'startup' as a non-profit (which I'm funding out of pocket until I have a complete product at which point I'll create a charity, assign all IP to it and open the source, I wanted to pay it forward), that one is going to be a complete health management system for patients with chronic or long term medical issues (this one came about as a result of my having chronic issues essentially I'm building the thing I looked for when I got ill and didn't exist) - which complies with all the standards and legislation applicable to local and national government systems, effectively I'm building the system that should already exist for end users.