Help trying to figure out nix-channel update and rebuild

Hello,

I been away the last couple days and i heard there where some new zero day exploits. did a nix-channel update then nixxos-reubild switch –upgrade .. it failed and it filled up my hard drive with nothing..

I did a rollback and a garbage college with the -d option did a nix-channel –update then a nixos-rebuild switch –update not upgrade and now its trying to rebuild evertyhing again and its killing my root hard drive.

How can i get out of the loop?

Share nix-channel --list and sudo nix-channel --list, as well as your configuration.

If you’re rebuilding locally, that means your derivations differ from what hydra is building. This can only happen if your channels are pointing at something they should not, or if you override something.


FYI the --upgrade/--update switches are almost exactly the same thing as running sudo nix-channel --update. The only difference is that they skip channels that don’t have certain metadata set.

Personally, I would not use those switches, and run the upgrade manually instead (like you already do).

3 Likes
joe@nixos:~]$ nix-channel --list

[joe@nixos:~]$ sudo nix-channel --list[sudo] password for joe:nixos https://channels.nixos.org/nixos-unstable

[joe@nixos:~]$

Code tags didn’t work.. This is nixos on aarch64 btw

Sounds like you’re either overriding something, or you’re building something that is currently failing to build upstream.

Can you tell us what the logs actually contain, and share your configuration?

It looks like you created several empty ones, they are working, you’re just adding too many blocks. There are some helpful docs here: Extended Syntax | Markdown Guide

Hi,

Where do i find the logs so i can post them?

If you run nixos-rebuild boot in your terminal it should print them to your terminal.

I ran nixos-reubuild boot and its trying to upgrade everything again..

Nice it went faster..

error: Cannot build '/nix/store/bsdk1da1wr9zrl3m7iq67p65lhqsldz8-linux-config-6.17.7.drv'.
       Reason: builder failed with exit code 255.
       Output paths:
         /nix/store/sd6sf17a13y6002piky722s4r5mrzy9a-linux-config-6.17.7
error: Cannot build '/nix/store/r742ixzicgjr7rcimv5n58m994lgygpf-55-nixos-aslr-entropy.conf.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/446sh08p0gmkmq7p6v7n57gz42j4brrj-55-nixos-aslr-entropy.conf
error: Cannot build '/nix/store/i2c7ix55fl5m7cwjxa9c5d7cfyrhd0vd-linux-asahi-6.17.7.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/kvnc67x6x9zsshw2fa1f29fczbqgwxqs-linux-asahi-6.17.7-dev
         /nix/store/pwisi4a3sj2i0yww3jp92q9lki7zrcb8-linux-asahi-6.17.7-modules
         /nix/store/z9p9267a2vv2aq6dp1vxf4n7hy38dx8l-linux-asahi-6.17.7
error: Build failed due to failed dependency
error: Build failed due to failed dependency
error: Build failed due to failed dependency
error: Cannot build '/nix/store/jbmr7bksq0c758fyb6xzyv4hd9v1f2an-boot.bin.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/3flw4z74v3ixsg9h20m9ghr4as2jahh6-boot.bin
error: Cannot build '/nix/store/89cycj52v8bspczkvfayxc871qfa4cbh-boot.json.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/1fn5v15gykwwfwsf4ls0kaiy9cq5glnn-boot.json
error: Cannot build '/nix/store/8sqsfbx0m8h7w6pvs3adh0qz950rhbnl-etc.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/cvgbrhaxqgpwly9nqqhi8i7k7h8qgnrv-etc
error: Cannot build '/nix/store/dxxc4vqabcijyzarmm3kji2yl3fv6m7b-linux-asahi-6.17.7-modules.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/mic4prgciyvjphcxrr8540w94vjramzh-linux-asahi-6.17.7-modules
error: Cannot build '/nix/store/9x18cbkmnd87ccx7sfq2l5q2k7z1kmbf-nixos-system-nixos-26.05pre992384.549bd84d6279.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/153p1a14jl0jw0wqvgisbk08iajbsmva-nixos-system-nixos-26.05pre992384.549bd84d6279
error: Build failed due to failed dependency
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --no-out-link' returned non-zero exit status 100.

Hope this helps

Looks like you modified your kernel config. That will indeed cause you to rebuild the kernel, which yes, that’s one of the larger builds you could be doing.

Can you share your configuration?