Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disko-install: nixBuild runs out of memory and gets killed #950

Open
dot-file opened this issue Jan 23, 2025 · 3 comments
Open

Disko-install: nixBuild runs out of memory and gets killed #950

dot-file opened this issue Jan 23, 2025 · 3 comments

Comments

@dot-file
Copy link

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.

@Mic92
Copy link
Member

Mic92 commented Jan 24, 2025

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:

installSystem = originalSystem.extendModules {

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

@sedlund
Copy link

sedlund commented Jan 25, 2025

using zram?

  zramSwap = {
    enable = true;
    memoryPercent = 150;
  };

@niksingh710
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants