-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sssd
to enable nix-channel --update
working
#294
Comments
The solution for this thing: cd /nix/var/nix/profiles/per-user
sudo ln -s $(id -u) $USER
cd /nix/var/nix/gcroots/per-user
sudo ln -s $(id -u) $USER Props to @gmacon for providing the solution on Matrix:
Maybe this is something that should be handled by this installer? |
Oh! Great catch! I'll have to read what |
home-manager
sssd
to enable nix-channel --update
working
Excellent news! |
As a complement of information... I just checked on my Amazon Workspace machine and I can't find any trace of |
Hi! Co-worker of @gmacon here. We have this problem specifically with sssd as that is what our IT team uses for centralized auth, but I expect that it will rear its head in other scenarios where your user is not in /etc/passwd if you've not set up the machine's nix infrastructure to be aware of your authentication scheme. So if you're using some other ldap setup, I think you MAY run into this problem if you've not properly set up the "nix part" of your machine to integrate to that ldap infrastructure. I have shied away from doing that thus far because I am afraid of getting locked out of my IT-supplied work machines. There are problems with sssd (specifically that nix/nixos does not handle the bootstrapping problem in a way that either glibc or sssd really support and end up abusing nscd. Read more at the nixpkgs issue), but sssd is likely not the only culprit that can cause this behavior. |
It occurred to me this morning (while talking to @bbenne10) that I realized straight away yesterday, but didn't say out loud, that this situation has nothing to do with nix-installer, to the best of my knowledge. |
Thanks for all this insight! We're currently relying on https://docs.rs/nix/latest/nix/unistd/struct.User.html for users and groups, which I don't think is very comprehensive. I wonder if there is some more robust option... |
I think that Any piece of software that wants information regarding a particular user (including The accepted answer via nix is to use |
While it may be this isn't something we can resolve in the installer, I would like to see if we can improve the current situation or offer a better message. |
We no longer provision |
Cool ! I'll try asap. |
Is it already available in 0.6.0 ? |
Should be! If you're using Mac you may want to wait for our 0.7.0 (coming by Friday) to fix some odd issues with Mac volumes and fsync timings. |
Thanks, I'll test on Amazon Workspaces tomorrow and report back. |
Hello,
I'm currently trying this installer on Amazon Workspace. We have issues with the official installer because the usernames we use on it contains backslashes.
It looks like the installer is working fine, but when I try to install
home-manager
, it's failing.WDYT ?
The text was updated successfully, but these errors were encountered: