I’m trying to build my usual configuration on my newly installed asahi linux NixOS on a M1 Macbook, however I am not able to achieve the full build due to out of memory errors. Are 16GB of RAM not enough to compile the linux kernel ? I run nixos-rebuild in a TTY with an almost empty system, so I doubt any other process is eating the RAM.
It always crashes during the asahi kernel build.
The build process seems to gradually eat my ram until it’s full and also use a very large amount of disk space (~75GB until now), could some sort of configuration issue cause this sort of problems ? Or is it just that the linux kernel too much of a job for a 16Gb ram macbook ?