[FAIL]** Found profiles outside of /nix/var/nix/profiles

Why did the installer create a symlink…
.nix-profile -> /home/cmyk/.local/state/nix/profiles/profile

… if it’s going to complain when you run a nix config test?
How is this properly set up? I could find nothing conclusive in docs.
Also, why does the installer not set $NIX_CONF_DIR?

cmyk@ubuntu: ~ $ nix config check
[PASS] PATH contains only one nix version.
[FAIL] Found profiles outside of /nix/var/nix/profiles.
The generation this profile points to might not have a gcroot and could be
garbage collected, resulting in broken symlinks.

   "/home/cmyk/.nix-profile/bin"

[PASS] Client protocol matches store protocol.
[INFO] You are trusted by store uri: daemon
2 Likes

Hey @cmyk - did you ever figure this out? I’m currently seeing the same thing.

If I do a nix profile -d home-manager-path and rebuild, it seems to resolve the issue, but I’d like to understand why this is happening on a clean build.

1 Like

No, I did not. No nix guru seems to have time to explain. Nix is not for the faint of heart.

Ah man. So are you running with the error still present? I’ve spent the day trying to figure it out - cannot get to the bottom of it at all.