If it's not earning you money then it's not an investment, just a purchase. Buying a house is pretty much like buying a car. You spend spend spend on it, and unless you get an extremely rare and special deal, you will never make your money back if and when you sell it. You might be able to get some of your money back if property values increase or if you do some improvements that increase the value of the house more than what they cost you... But when you add it all up - down payment, closing costs, taxes, insurance, mortgage payments, utility payments, landscaping, carpet cleaning, appliances, etc etc etc - it's going to be a huge financial loss.
I bought for myself first, that was before I was aware of "house hacking". Now that I know, I really wish I had done that. My husband and I are young (26) and only bought our house 1.5yrs ago, so we are somewhat cash poor and don't have much equity. That puts me in a tight spot now that I'm looking to invest.
So I'd recommend not doing what I did. Buy a small multifamily (duplex, triplex, etc) that you can afford with your down payment, that will still cash flow if one of the units is not rented (because that's where you'll be living). You can essentially be paid to live for free. That would mean that whatever you would otherwise be spending on rent/mortgage, can now be set aside and saved up to put towards another investment.