I would stick to the m series really any of them, if you go 2018 or back there wonβt be support soon. No security patches. I have a 2018 and a m1. The 2018 only has like a year to a year and a half of patches. If youβre using it as a hub and not for inferencing locally, it doesnβt have to be all that powerful.
I would highly suggest checking back market. They have great prices for a little bit more powerful machines. Youβll have to look for Mac mini in the search bar because they donβt have a tab for it though.