I recently started using nixpkgs (single-user install) on a system running RHEL 7.8 that uses NFS-mounted home directories (but the /nix directory is on local storage). The system version of git was quite old, and was causing warnings from emacs/magit, so I used nix (specifically nix-env -iA nixpkgs.git) to install git. The nixpkgs channel is set to nixpkgs-unstable release nixpkgs-21.11pre326916.7053541084b. I expected that everything would just work, however, it does not. Executing git fetch or git push (whether on the nfs mount, or a local drive) results in an error similar to the following:
No user exists for uid xxxx fatal: Could not read from remote repository Please make sure you have the correct access rights and the repository exists.
If, however, I use /usr/bin/git (to make sure I’m using the system git), then git fetch/push works as expected. I’ve tried to search here, on the web, and in the nixpkgs issues, and the closest I’ve come is problems with libnss and glibc during a big libnss version bump with breaking changes. Note that installing coreutils, and using the
ls command from coreutils, results in seeing the uid/gid of directory entries instead of the user and group names. I’ll gladly try overlays, overrides, or whatever else, as I’d really like to start using home-manager/nixpkgs on this system, but I’m not sure where to go from here.
Does anyone have any suggestions for information gathering or a solution?