The hardware requirement for a home lab can depend on your needs, but generally any machine with the following minimum specifications will suffice for a linux server:
In addition, you want a comptetent router to handle the traffic and requests to your server. If you plan on using a Cloud Virtual machine, or VPS, this is irrelevant.
A competent router is one that meets the following criteria: