Configuration System Build Error out of the blue

Hi Discourse!

I am working on building out my NixOS config after switching from Arch, and everything has been going completely fine, except today after adding a swaylock and swayidle config, home-manager based, using programs.swaylock and services.swayidle, respectively, when things started blowing up.

I have since removed all config references to swaylock and swayidle, as that is when the problems began, but I continue to get this error whenever I run sudo nixos-rebuild switch:

unpacking channels...
error:
       … while evaluating the attribute 'config'

         at /nix/store/rf5gc8bjqxn1jmf8ri1akl4i1lpd7kx9-nixos/nixos/lib/modules.nix:320:9:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          321|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/store/rf5gc8bjqxn1jmf8ri1akl4i1lpd7kx9-nixos/nixos/lib/modules.nix:320:18:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          321|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: failed to extract archive (truncated gzip input)
building Nix...
error:
       … while evaluating the attribute 'config'

         at /nix/store/rf5gc8bjqxn1jmf8ri1akl4i1lpd7kx9-nixos/nixos/lib/modules.nix:320:9:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          321|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/store/rf5gc8bjqxn1jmf8ri1akl4i1lpd7kx9-nixos/nixos/lib/modules.nix:320:18:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          321|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: failed to extract archive (truncated gzip input)
building the system configuration...
error:
       … while evaluating the attribute 'config.system.build.toplevel'

         at /nix/store/rf5gc8bjqxn1jmf8ri1akl4i1lpd7kx9-nixos/nixos/lib/modules.nix:320:9:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          321|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/store/rf5gc8bjqxn1jmf8ri1akl4i1lpd7kx9-nixos/nixos/lib/modules.nix:320:18:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          321|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: failed to extract archive (truncated gzip input)

Apologies for the long error message post, I just wanted to get it all in here. As far as I can tell in my very limited NixOS knowledge, there is no specific indicator as to where the issue is. Using the --show-trace option just adds a ton of errors to the output, with even less indication (though I can post as much as I can of the --show-trace output - there is so much that my terminal won’t scroll up anymore :frowning:).

Can anyone tell from the above where things might have gone haywire…? Many thanks in advance!

There was a GitHub outage that affected the APIs for downloading repos: https://www.githubstatus.com/incidents/c8zjb9351hlc

It seems to be fixed by now.

Oh wow, that was in fact the case it seems. Great news! Thanks for replying…