[FAIL] Found profiles outside of /nix/var/nix/profiles
Author: cmykCreated Jan 30, 2025Updated Sep 26, 2026
Labelsinstaller
Platform
- Linux: Ubuntu 24.04.1 LTS, QEMU Virtual Machine (on an M1)
- macOS
- WSL
Additional information
The installer made a symlink:
lrwxrwxrwx 1 cmyk cmyk 44 Jan 29 15:45 /home/cmyk/.nix-profile -> /home/cmyk/.local/state/nix/profiles/profileAfter a fresh install of nix, I get this error when checking with nix config check:
Output
Outputcmyk@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
Checklist
- checked latest Nix manual (source)
- checked open installer issues and pull requests for possible duplicates
Add :+1: to issues you find important.
Source: NixOS/nix