Looks good. I’ve always found it annoying that lemmy doesn’t do this by default.
I’m not sure about the license though. Creative Commons recommends against using their licenses for software, since it doesn’t include terms regarding source code, doesn’t handle patents, and it’s usually incompatible with free software licenses.
There’s also Midnight Lizard. It’s more powerful, but more resource intensive so I wouldn’t recommend on phones or older systems.