Trying to understand garbage colletion I confused the system-*-link links with the default-*-link links.
As seen in one of the nix pills, I started to delete the “default-*-link” links - but unfortunately all of them!
In /nix/var/nix/proflies
it now looks like:
[root@nixtn:~]$ ls -l /nix/var/nix/profiles/
insgesamt 32
lrwxrwxrwx 1 root root 14 9. Feb 23:59 default -> default-4-link
drwxrwxrwt 6 root root 4096 10. Feb 20:34 per-user
lrwxrwxrwx 1 root root 14 11. Feb 17:43 system -> system-25-link
lrwxrwxrwx 1 root root 89 4. Feb 21:32 system-19-link -> /nix/store/7hc0qcfbyrr3gl8v78npyzp03kx929hs-nixos-system-nixtn-19.03pre166987.bc41317e243
lrwxrwxrwx 1 root root 89 4. Feb 21:49 system-20-link -> /nix/store/l8dskwpf8f7ri8pdxi4iq6a507b5hn24-nixos-system-nixtn-19.03pre166987.bc41317e243
lrwxrwxrwx 1 root root 89 9. Feb 23:42 system-21-link -> /nix/store/p84h94f1b0bkgblh1az6kwq43yms1gkh-nixos-system-nixtn-19.03pre168613.ffc604e5579
lrwxrwxrwx 1 root root 89 10. Feb 00:19 system-22-link -> /nix/store/x2nv1qpxq03kp6svh5mryr9s5pgxlqb3-nixos-system-nixtn-19.03pre168613.ffc604e5579
lrwxrwxrwx 1 root root 89 10. Feb 07:17 system-23-link -> /nix/store/17vj66jjhkckb6bnldpkp5sbjkf5qr3q-nixos-system-nixtn-19.03pre168725.64825dfd26a
lrwxrwxrwx 1 root root 89 10. Feb 20:18 system-24-link -> /nix/store/rirb4zv1q8wj7y4an1ix03hifc498car-nixos-system-nixtn-19.03pre168725.64825dfd26a
lrwxrwxrwx 1 root root 89 11. Feb 17:43 system-25-link -> /nix/store/gf84jwn6lgjn5v3s3sq0w1xia043jr6g-nixos-system-nixtn-19.03pre168781.929cc78363e
As you can see, the default
link points to default-4-link
which I unfortunately removed…
Any ideas how to repair this? Running a nixos-rebuild switch
didn’t restore the missed link.