Open DCsunset opened 1 year ago
I guess it is working similarly to the containers runtimes, and the uid inside nix-user-chroot
shell doesn't match to the uid on the host, but there is a non-trivial mapping.
https://en.wikipedia.org/wiki/Linux_namespaces#User_ID_(user)
However, I'm also looking for an option to make ssh
(and therefore Git operations based on SSH) working within nix-user-chroot
.
I have run into this too. Especially with git. Has anyone ran into a solution for it?
Within
nix-user-chroot ~/.nix bash
, the programwhoami
andssh
stop working because it cannot find the user for the uid.The uid doesn't change after running
nix-user-chroot
, but for some reason it can no longer find the user.A similar issue is https://github.com/NixOS/nixpkgs/issues/64665 but the solution no longer works since there's no
libnss_sss.so.2
in my system.