Gcroots: /root/result and /root/.tmp

I was looking at the garbage collector roots on my system and I noticed some that surprised me:

/nix/var/nix/gcroots/auto/1d5... -> /root/.tmp
/nix/var/nix/gcroots/auto/7h9... -> /root/result

Looking at what they link to:

/root/.tmp   -> /nix/store/...-nixos-system-nixos-22.05.20221230.0c5a734
/root/result -> /nix/store/...-nixos-system-nixos-20.03.20200622.13c15f2

Does anyone know what might’ve created these, and whether it’s safe to remove them? They seem to be referencing older nixos releases than I’m currently running.

Probably some nixos-rebuild build ran in your root-users home. But thats just a guess.

But you should be able to delete them without any issues.

1 Like