I use the Mac M1 and wouldn't suggest it for linux unless all the functionality you need is explicitly supported. Most stuff does work for me as a java dev. However, Asahi doesn't support docking to a monitor which prevents me from using it solely as a linux machine.