System-Path failure when updating to 25.11

I am just getting started with Nixos, and have created a flake configuration. I had this issue crop up when making changes (specifically adding the framework 12 module from nixos-hardware) as well as when trying to upgrade packages from 25.05 to 25.11. I get a gzip error when building system-path. Here is the output of sudo nixos-rebuild switch –flake .

$ cat /proc/sys/kernel/hostname
$ nix --extra-experimental-features nix-command flakes build --out-link /tmp/nixos-rebuild.pwerh7/nixos-rebuild .#nixosConfigurations.“framework”.config.system.build.nixos-rebuild --verbose
warning: Git tree ‘/home/andrew/nixos’ is dirty
$ exec /nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/bin/nixos-rebuild switch --flake . --verbose
building the system configuration…
debug: nixos_rebuild.process: calling run with args=[‘nix’, ‘–extra-experimental-features’, ‘nix-command flakes’, ‘build’, ‘–print-out-paths’, ‘.#nixosConfigurations.“framework”.config.system.build.toplevel’, ‘–no-link’, ‘-v’], kwargs={‘stdout’: -1}, extra_env=None
warning: Git tree ‘/home/andrew/nixos’ is dirty
these 19 derivations will be built:
/nix/store/nch2f4bbxx9lsga84cqvp71mk21fqx51-linux-6.12.60-modules-shrunk.drv
/nix/store/01p7l77c3r66vkyg6vz5lwas3gp3i8ac-initrd-linux-6.12.60.drv
/nix/store/7jk8935v5narsrz1dfcrbzmrj5cxs1na-system-path.drv
/nix/store/h2xf3vcbwjsi2m30nsmxbprvik8q9gkv-dbus-1.drv
/nix/store/6v1jlslif3kbszbd5s0ha6071h53b8h4-X-Restart-Triggers-dbus.drv
/nix/store/49xjpc93m4qqyd8h2k44zx3xapcdw4pv-unit-dbus.service.drv
/nix/store/4sxh60scbdvmp9lczmffx8kl414f87fn-unit-dbus.service.drv
/nix/store/64q092fmyw8bvyyx7gvxzj4ga1a27nwv-boot.json.drv
/nix/store/brf41nl7p201j7vzgyfbxdvy0m0yc1ss-X-Restart-Triggers-polkit.drv
/nix/store/bzsvp3gfl4xvhmxpab060fy94k4wqfsq-unit-accounts-daemon.service.drv
/nix/store/g4chpas40kyhjd1fm1nf1ar46dxm8660-set-environment.drv
/nix/store/d46yld5ggcavfl20n4yimbg90y1pcqvx-etc-profile.drv
/nix/store/fzxkilf134s2318bkf3c4wjlsn40hqp6-etc-pam-environment.drv
/nix/store/mkz0in0dcbkr7rm2pw91r4l8zjg99bll-etc-zshenv.drv
/nix/store/wdl3wyvyflbk41c299xs7j29q3yhsgzh-unit-polkit.service.drv
/nix/store/viy6pa3rdjbr5sal9cs6lal7m6rgkrcv-system-units.drv
/nix/store/xs3xgwapphh9qbh85fl406z3jbgr15g2-user-units.drv
/nix/store/lm845inh10sywvmm4h63m65ma5xq4bqf-etc.drv
/nix/store/zmgckp9qnrs0z07s3zrrjspypfz9cbr2-nixos-system-framework-25.11.20251206.d9bc5c7.drv
building ‘/nix/store/7jk8935v5narsrz1dfcrbzmrj5cxs1na-system-path.drv’…
building ‘/nix/store/nch2f4bbxx9lsga84cqvp71mk21fqx51-linux-6.12.60-modules-shrunk.drv’…
error: Cannot build ‘/nix/store/7jk8935v5narsrz1dfcrbzmrj5cxs1na-system-path.drv’.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/znm0bbpnqsyn7hii62c6pxjfwzw3gk07-system-path
Last 3 log lines:

pkgs.buildEnv warning: colliding subpath (ignored): /nix/store/p799x38yzq1nzcw0y6hzs2qxad4qx698-nix-zsh-completions-0.5.1/share/zsh/site-functions/_nixos-rebuild' and /nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/share/zsh/site-functions/_nixos-rebuild’
created 16770 symlinks in user environment
install-info: No such file or directory for gzip -d
For full logs, run:
nix log /nix/store/7jk8935v5narsrz1dfcrbzmrj5cxs1na-system-path.drv
error: Cannot build ‘/nix/store/zmgckp9qnrs0z07s3zrrjspypfz9cbr2-nixos-system-framework-25.11.20251206.d9bc5c7.drv’.
Reason: 1 dependency failed.
Output paths:
/nix/store/33prijbbl3sakxqk379wl0jqj2rrs6i8-nixos-system-framework-25.11.20251206.d9bc5c7
Traceback (most recent call last):
File “/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/init.py”, line 352, in main
execute(sys.argv)
~~~~~~~^^^^^^^^^^
File “/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/init.py”, line 315, in execute
services.build_and_activate_system(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
action=action,
^^^^^^^^^^^^^^
…<6 lines>…
grouped_nix_args=grouped_nix_args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/services.py”, line 301, in build_and_activate_system
path_to_config = _build_system(
attr=attr,
…<5 lines>…
grouped_nix_args=grouped_nix_args,
)
File “/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/services.py”, line 173, in _build_system
path_to_config = nix.build_flake(
attr,
…<2 lines>…
| grouped_nix_args.flake_build_flags,
)
File “/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/nix.py”, line 87, in build_flake
r = run_wrapper(run_args, stdout=PIPE)
File “/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/lib/python3.13/site-packages/nixos_rebuild/process.py”, line 137, in run_wrapper
r = subprocess.run(
run_args,
…<7 lines>…
**kwargs,
)
File “/nix/store/3lll9y925zz9393sa59h653xik66srjb-python3-3.13.9/lib/python3.13/subprocess.py”, line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘nix’, ‘–extra-experimental-features’, ‘nix-command flakes’, ‘build’, ‘–print-out-paths’, ‘.#nixosConfigurations.“framework”.config.system.build.toplevel’, ‘–no-link’, ‘-v’]’ returned non-zero exit status 1.

My repo is here: https://github.com/an0t8/nixos

I thought that my nix/store might be corrupt so I did a sudo nix-collect-garbage -d and then I get a clean sudo nix-store –verify –check-contents –repair but doing a sudo nix store repair –all –debug -v ends with this:

substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: created
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: woken up
querying info about missing paths…
starting pool of 24 threads
entered goal loop
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: return_value(Co&&)
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: in final_awaiter
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: init
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: trying next substituter
querying info about ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’ on ‘https://cache.nixos.org’…
downloading ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’…
starting download of https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo
curl: Couldn’t find host cache.nixos.org in the /etc/nix/netrc file; using defaults
curl: Re-using existing https: connection with host cache.nixos.org
curl: [HTTP/2] [733] OPENED stream for https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo
curl: [HTTP/2] [733] [:method: GET]
curl: [HTTP/2] [733] [:scheme: https]
curl: [HTTP/2] [733] [:authority: cache.nixos.org]
curl: [HTTP/2] [733] [:path: /r2aszimawznj45rjchksvfgw4iipsh4n.narinfo]
curl: [HTTP/2] [733] [user-agent: curl/8.14.1 Nix/2.28.5]
curl: [HTTP/2] [733] [accept: /]
curl: [HTTP/2] [733] [accept-encoding: zstd, br, gzip, deflate, bzip2, xz]
curl: Request completely sent off
download thread waiting for 100 ms
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: HTTP/2 404
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: server: Varnish
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: retry-after: 0
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: content-type: text/plain
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: accept-ranges: bytes
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: date: Mon, 08 Dec 2025 20:17:35 GMT
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: via: 1.1 varnish
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: x-served-by: cache-chi-klot8100085-CHI
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: x-cache: MISS
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: x-cache-hits: 0
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: access-control-allow-origin: *
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’: content-length: 3
got header for ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’:
curl: Connection #0 to host cache.nixos.org left intact
finished download of ‘https://cache.nixos.org/r2aszimawznj45rjchksvfgw4iipsh4n.narinfo’; curl status = 0, HTTP status = 404, body = 3 bytes, duration = 0.07 s
download thread waiting for 10000 ms
path ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’ is required, but there is no substituter that can build it
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: done
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: in final_awaiter
substitution of ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’: goal destroyed
error: cannot repair path ‘/nix/store/r2aszimawznj45rjchksvfgw4iipsh4n-opencore-amr-0.1.6.tar.gz.drv’
download thread shutting down

I don’t know if that is indicative of anything or not, I was seeing a path collision for zsh that was ignored as well. I have been trying to troubleshoot this for some time now, and am not getting anywhere. I haven’t done anything crazy, just installed Nixos on a new framework 12 laptop, and switched to flakes. I was planning on adding agenix and making this a multi-host configuration. I also decided to switch to a better pattern for my config, that uses more options and does a better job at making things reusable, but I can’t switch to that because I get the same error. I can go back to my original commit and rebuild that system with no issues.

I considered just re-installing, but I feel like this is my ignorance that caused this somehow and I would just hit it again. If it is a corrupt store or something, then I would like to understand what is happening and learn how to fix it instead of the nuclear option. Any pointers in the right direction would be greatly appreciated.

Update:

I noticed here https://nixos-and-flakes.thiscute.world/nixos-with-flakes/other-useful-tips that I should run nix-collect-garbage -d as my normal user, so I did that and tried another rebuild. It is failing at the same place, but I am also seeing a colliding subath for zsh site-functions:

...
"system-path> pkgs.buildEnv warning: colliding subpath (ignored): '/nix/store/p799x38yzq1nzcw0y6hzs2qxad4qx698-nix-zsh-completions-0.5.1/share/zsh/site-functions/_nixos-rebuild’ and '/nix/store/vvfclqlzrwsbmk015rwysvqrp7dmir03-nixos-rebuild-ng-25.11/share/zsh/site-functions/_nixos-rebuild'
system-path> created 16770 symlinks in user environment
building '/nix/store/zgjhb24hl93ad2yxijhqmqndiylbmajg-home-manager-path.drv'...
system-path> install-info: No such file or directory for gzip -d
error: Cannot build '/nix/store7jk8935v5narsrz1dfcrbzmrj5cxs1na-system-path.drv'.
       Reason: Builder failed with exit code 1.
       Output paths:
         /nix/store/znm0bbpnqsyn7hii62c6pxjfwzw3gk07-system-path
error: Cannot build '/nix/store/znmgckp9qnrs0z07s3zrrjspypfz9cbr2-nixos-system-framework-25.11.20251206.d9bc5c7.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/33prijbbl3sakxqk379wl0jqj2rrs6i8-nixos-system-framework-25.11.20251206.d9bc6c7
...

system-path >

I bit the bullet and re-installed my flake from a nixos-minimal live iso after rm -rf ing /nix. Everything seems to be working fine now. Not sure what I did that corrupted things. The only other path to solving it seemed to be manually digging things out of the database and removing drvs & roots from the store. I’m not ready for that yet.