Need help/opinion

Just got the opportunity to buy this 2008 Impreza hatch for $600 from a friend of a friend. He said there's a coolant leak so my biggest concern is that it's the head gasket that's gonna need to be replaced. It would be my first car and I don't have a large budget due to being a university student. Anyone with more Subaru knowledge want to give me any advice on if I should pull the trigger on it.

Also previous owner is a mechanic so general maintenance isn’t a worry as it was his daily driver/winter beater.