You can use nixpkgs and brew on macOS.
I have both kernel (GNU/Linux and XNU/darwin(macOS)) and even if there is tons of stuff I don’t like with macOS and their non-repairable hardware I have to admit that battery life, trackpad feeling, monitor, speaker and build quality are very hard to beat.
But unfortunately due to the undocumented arm architecture of Apple Silicon you will have hard time running GNU/Linux on M macs.
My MacBook is my last non-linux based machine as of today and I have difficulties switching it even if I want it very bad, some of my software don’t run well on Linux even through Wine/CrossOver and the battery life and idle power are the main reason why I am still using a lockdown OS on one of my laptop.



Fedora is known to be a good middle ground, and that’s why Linus Torvalds is running it on its work machine. But Fedora is more GNOME focus, while it does not stop you from using KDE, if you’re on Xubuntu you might want to consider Kubuntu.