Reset Mac Mini to factory default settings
I have bought a new Mac Mini, and transferred everything I want to it from my previous MacMini.
The old one is about 2012 I think and has mac os 12.6.8 on it. I have found instructions on how to boot it into recovery mode, and erase the drive and then to install the operating system again, prior to passing it on to a new owner.
My question is which OS will it install ? The one it has on at present, or the one it originally came with which I think was Mavericks, or will it try to install the latest that is compatible?
And do I need to be connected to the internet for it to download the operating system?
Please if anyone can advise, I would be grateful. Thanks.
Mac mini, macOS 12.6