For a home gym, there is no minimum height, it is just whatever you are comfortable in. As long as you have enough room to do all the exercises you want then you are good. If you want to do exercises like an overhead press then you want at least a couple of extra feet of headroom over your height so you can press without touching the ceiling.