Most of this is just notes for my own use, since I'm sure to reformat/reinstall at some point in the future and I don't want to have to rediscover everything I did the first time(s) around. It's kind of a guide to getting my entire env setup the way I like it. For those who aren't me and wanting to use this for your own X1 Carbon Gen7 setup, you can ignore some of the parts if you want, like vim and the IDE installations and openjdk and whatnot. I'd still install snapd and get fwupd from there though, if you want your fingerprint scanner to work at all.
This is basically the exact same for Ubuntu as well.