I use an Asus laptop I bought during COVID as my server. I dropped in 64GB of RAM, a pair of NVM drives and an old 2.5” SATA SSD. More than enough for my use cases. The only real software tweak I made was limiting battery charging to 60%.
For my Asus laptop the setting is maintained at the hardware level. I didn’t bother trying to find Linux software that could control it (I think there is one) but instead just booted into Windows and set it there and it will persist after that in Linux.