If I’m just doing a hobby project proof of concept to learn a new for me technology, I would do that on my work computer. We have a very liberal open source process where we can open source a project under:
https://github.com/aws-samples
That only requires going through a simple process. That also means I have unlimited admin access to multiple dev AWS accounts using our internal tool that we can’t name but almost everyone knows about.
If/when I leave, I can just fork it and continue to work on it if no one else is interested in maintaining it. Otherwise, submit a pull request.
Any outside work I would do would be considered “consulting” - the same thing I do on my $DayJob. That would clearly be a conflict of interest.