Hi,
Nix newbie trying to install Nix on my Synology NAS here. I’ve run into this problem.
I’ve seen multiple times where nix commands do not like that $HOME/..
is a symlink. But I have no control over that. It is a symlink. What can I do?
$ nix-env -iA nixpkgs.glibcLocales
error: path '/var/services/homes' is a symlink
$ echo $HOME
/var/services/homes/peteradmin
$ ls -l /var/services/homes
lrwxrwxrwx+ 1 root root 14 Sep 25 2023 /var/services/homes -> /volume1/homes
# It does work with a "normal" non-symlink $HOME
$ HOME=$(cd && pwd -P) nix-env -iA nixpkgs.glibcLocales
replacing old 'glibc-locales-2.38-44'
installing 'glibc-locales-2.38-44'
$ nix --version
nix (Nix) 2.21.0
Peter