При установке через NixOps каналы, похоже, настроены, однако сам NixOps ими не пользуется. Поэтому nix-channel --update создаёт первое поколение, а nix-channel --rollback не помогает, поскольку более раннего поколения для отката нет.
Кажется, следующий способ позволяет успешно удалить эту информацию.
Никогда не выполняйте это в обычной установке Nix или NixOS! Это относится только к NixOps.
rm /nix/var/nix/profiles/per-user/root/channels-1-link
rm /nix/var/nix/profiles/per-user/root/channels
rm ~/.nix-defexpr/channels
nix-collect-garbage -d
Переведено с английского·Показать оригиналWith a NixOps setup, channels appear to be configured without NixOps actually using them. Consequently, nix-channel --update makes an initial generation, and nix-channel --rollback cannot help because there isn't an earlier generation to return to.
This appears to remove that information successfully.
Never use this with ordinary Nix or NixOS installations! It applies only to NixOps.
rm /nix/var/nix/profiles/per-user/root/channels-1-link
rm /nix/var/nix/profiles/per-user/root/channels
rm ~/.nix-defexpr/channels
nix-collect-garbage -d