If self-improvement is not a "work-task", that is not a company worth working at.
Then, assign all copyright to your opensource work to the FSF, which is a 501c organization.
Not every company can afford to let employees "self-improve" on the latter level.