We powered the Mac Mini M1 using 12V DC, bypassing the built-in AC power adapter, and used it for some quadruped robot experiments. Some details on the connector are here:
https://www.ifixit.com/Answers/View/574827/What+PSU+connecto... (that article mentions Mac Mini 2018 but the connector/pinout still works fine for Mac Mini M1)