disko
disko copied to clipboard
Disko-install: nixBuild runs out of memory and gets killed
nixBuild that is run here runs out of memory which causes disko-install to fail.
I have 8 gigs of RAM and running disko and nixos-install separately works just fine.
I also noticed that even after disko-install exits and I don't run anything else 2.5 gigs are still consumed by something I was unable to define with btop.
Disko currently needs to evaluate NixOS twice. So more resources are required to make compared to nixos-anywhere. This is because we need to extend the original system with disks overridden: https://github.com/nix-community/disko/blob/bf0abfde48f469c256f2b0f481c6281ff04a5db2/install-cli.nix#L48
I don't see an easy way around that if we want to be able change disk names. I think you would need to use the disko cli and nixos-install separately
using zram?
zramSwap = {
enable = true;
memoryPercent = 150;
};
Have enabled zram still now i get out of storage error, where as if i partition using disko then install via nixos-install everything is fine.
maybe limit number of jobs at once?