There are companies spending thousands of dollars on contractors who deliver suboptimal work. Hiring someone who can code/vet/manage contractors can save money. You could also do some work for city govts, my local village is paying $90k for a dev role, it isn't great but I have feeling it is a very cushy job. A friend of mine works for a major city as a project manager and his salary is $110k. He can go to the office and nap. Things move EXTREMELY slow. This would be great for me once I get older.
I work for non-tech manufacturing company and have freedom to use whatever stack I want. I work whenever I want. My boss tells me "no rush" all the time. They are used to contractors missing deadlines by YEARS. I can have a productive week and a crappy week, nobody cares.
You could also try to build some software for small to mid companies. They are a small fish for major software shops but for a solo dev can produce a nice income, even if you just maintain their stuff on a contract basis.