It was accidentally triggering the auto-chroot code path because /nix/var/nix didn't exist. Fixes #6790.