NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.35k stars 13.59k forks source link

gnome-keyring module not unlocking login keyring on Plasma #86884

Open mjlbach opened 4 years ago

mjlbach commented 4 years ago

Describe the bug

When I first attempted to use login keyring, I received the following error:

Unlock Keyring: 
Enter password to unlock: 
An application wants access to the keyring 'Default keyring', but it is locked.

The module does not create a login keyring by default, so I deleted the "Default keyring" that was created the first time I added a password to the keyring. Now every time I log in, I have to enter my password into a popup:

Unlock Login Keyring: 
Enter password to unlock your login keyring: 
The login keyring did not get unlocked when you logged into your computer.

To Reproduce Steps to reproduce the behavior:

  1. services.gnome3.gnome-keyring.enable = true;
  2. Log into kde plasma

Expected behavior The login keyring is created upon enabling the module and the login keyring is logged into by default.

Fix Creating a login keyring and adding the following fixes the issue:

security.pam.services.sddm.enableGnomeKeyring = true;

CC:

@worldofpeace

nixos-discourse commented 4 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/unlocking-gnome-keyring-automatically-upon-login-with-kde-sddm/6966/4

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

Lyndeno commented 2 years ago

Is this resolved? Perhaps we can close this issue.

jtojnar commented 2 years ago

It is not fixed. As mentioned on Discourse, gnome-keyring hooks into the login pam module:

https://github.com/NixOS/nixpkgs/blob/c11d9597c1b3cdc4fb44cbab48deec2cfbaa5281/nixos/modules/services/desktops/gnome/gnome-keyring.nix#L52

But unlike lightdm and GDM, SDDM does not seem to include the login PAM module. It would need something like https://github.com/NixOS/nixpkgs/commit/5b9895b1a077c5c431b08a88749a4958472cab3c.

nixos-discourse commented 1 year ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/unlocking-gnome-keyring-automatically-upon-login-with-kde-sddm/6966/6