Bought a new iMac to replace the old, have two questions regarding file migration
You want to use the same AppleID as before as both all your purchases and your iCloud Drive is linked to it. So once you've set the Mac up and added your AppleID credentials the content of your iCloud Drive should sync to your Mac (patience may be required, depending on your connection and the load on Apple's servers).