Empty channel added automatically, breaks update

For the second time within a week, the following happened:

When i ran sudo nixos-rebuild switch --upgrade-all the result was error: reading symbolic link '/nix/var/nix/profiles/per-user/root/channels/"': No such file or directory.

When i run sudo nix-channel --list the result is

" "
nixos "https://nixos.org/channels/nixos-unstable

The empty entry is the reason for the failure to update. I can “solve” it by adding the unstable channel again but i would like to know what is happening, this never happened before…

This issue has been resolved and should’ve already reached the channel. See the tracking issue:

1 Like

I ran the commands recommended on the GitHub issue, and now my new generations hang after grub.

It tries to load the needed modules to ask my luks password, but it never reaches that part. Any ideas?

1 Like