

I don’t have a Lenovo, but a Dell Latitude that i use like a desktop, mostly plugged in next to my couch. In the bios you can set it to optimize the battery and charging for ‘primarily AC usage’, as well as set a percentage to limit charging, I think I have it set to 85%, I would assume you can do the same on a Lenovo.
I wouldn’t worry too much about it past that, if leaving it plugged in all the time is convenient, just do that. You could also probably buy a new battery on eBay and replace it if your battery is actually shot and you want better life.
Alpine is an interesting choice for hosting, really curious what situation you’re hosting in that would require that level or lightness for a distro?