I self host some things with an m1 air I don't use anymore, partly for the convenience of the battery.
It is pretty annoying to deal with OS updates and other quirks of hosting with OSX though, I should probably switch to Asahi...