-
Notifications
You must be signed in to change notification settings - Fork 154
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
User secrets not being symlinked to /run/secrets-for-users
#627
Comments
Hello, I have the same problem. I might be wrong, but I think the issue is related to nix 2.24. My unstable system hasn't been updated for about ten days (maybe more, maybe less). I first updated all inputs except nixpkgs (unstable) without encountering any problems. It was only when I updated nixpkgs that I noticed the issue. Before updating my system today, nix was at version 2.18. Since upgrading to version 2.24, I've been observing the same problem. I've tried older versions of sops-nix and I still get the same error: warning: password file ‘/run/secrets-for-users/user-password’ does not exist, as mentioned before. If I add Unfortunately, on reboot the user is still inaccessible. |
I continued my research: I assigned a password to root via After rebuilding, if I open
I've replaced the real string with HASHEDPASSWORD in the lines above for the example, so the string that actually appears in the file is the one included in the configuration. When I restart, the gnome login manager asks me to enter a full login (username and password) instead of presenting me with the default user. Here, alex doesn't work, but root does. From here, I open a tty and connect via root. If I do On the The line formerly Whether I use sops or not, I also note that if I try to authenticate with my user in gdm, the description associated with the user( EDIT : I observe the same symptoms when I used this option to configure wi-fi, which became unavailable on reboot until this option was removed. |
I'm trying to set a user password using
sops.secrets.<secret>.neededForUsers = true;
andhashedPasswordFile = config.sops.secrets.<secret>.path
.When I try to rebuild my system I get the following error:
The secrets are being stored inside
/run/secrets-for-users.d
though. I tried using the absolute path for the secrets instead ofconfig.sops.secrets.<secret>.path
, but it doesn't work I can't login into the system anymore.I've tried using the same plain hashed password with
hashedPassword
and it's working.The text was updated successfully, but these errors were encountered: