My NixOS installation is stuck in the download buffer is full

My NixOS installation is stuck in the download buffer is full; consider increase download-buffers-size setting loop. Any advice on how to get out?

Is it really stuck?

Or does it just print the warning and goes on with whatever it is doing?

No I mean if I want to change it before I move from dry-run to switch I can’t.

You can use --option to set the option for this nixos-rebuild invocation, if it is this what you are asking.

Never been down that path thanks for the heads up. will do!

configuration.nix

{


nix.settings = {
  download-buffer-size = 524288000; # 500 MiB
};

  imports =
    [ ./hardware-configuration.nix
      ./modules/common.nix
      ./modules/hosts/king.nix
      ./modules/shell.nix
      ./modules/users.nix
      ./modules/git.nix
      ./modules/services/servers.nix
      ./modules/services/php.nix
      ./modules/virtualization.nix
      ./modules/altpkgmgr.nix
      ./modules/software/gui.nix
      ./modules/gnome.nix
    ];
...

I commented out these modules:

      ./modules/git.nix
      ./modules/services/servers.nix
      ./modules/services/php.nix
      ./modules/virtualization.nix
     ./modules/altpkgmgr.nix

and was able to build and then added them back later.

So, for those who can update the download buffer size early in you journey.
Problem solved!

1 Like

I still do not understand the problem.

The download buffer full is a warning, that I have never seen cause actual abortion nor staleness…

The build would fail. At first, I thought it was a disk space issue. Trimmed generations, moved folders to different drive, … No change. Removed first 3 modules from the list … No change. Removed the last 2. The build succeed, and no buffer error.

So, what has been the exact error?

I have the feeling that we might be talking about different things here…

They errors besides build failed were all over the place depending on where the build failed. That is what gave me the hint that the download buffer warning was not just a warning but the issue.