Why pay so much more to fight an uphill battle?
Unless you desperately need the hot garbage that is Xcode there isn't much reason to deal with Mac Minis running MacOS as a server. One update and it will suspend and be unwakeable without physical interaction.