I work for a factory maintaining it's existing custom ERP and building new software for it (basically imagine a programmer consultant for 1 costumer just with regular contract). Mix of maintaining legacy code, writing new one and servicing hardware is dynamic enough not to be bored and I have a lot of independence in the job. It's comfy af.