nixos/gnome-keyring: unlock keyring with gdm-password, gdm-autologin
GDM uses gdm-password as the PAM service name for both logins and unlocks. So unlock gnome-keyring as part of `gdm-password`. Without this, keyrings may not be unlocked properly for GDM 45+. also unlock as part of GDM autologin
This commit is contained in:
@@ -35,7 +35,15 @@ in
|
||||
|
||||
xdg.portal.extraPortals = [ pkgs.gnome.gnome-keyring ];
|
||||
|
||||
security.pam.services.login.enableGnomeKeyring = true;
|
||||
security.pam.services = lib.mkMerge [
|
||||
{
|
||||
login.enableGnomeKeyring = true;
|
||||
}
|
||||
(lib.mkIf config.services.xserver.displayManager.gdm.enable {
|
||||
gdm-password.enableGnomeKeyring = true;
|
||||
gdm-autologin.enableGnomeKeyring = true;
|
||||
})
|
||||
];
|
||||
|
||||
security.wrappers.gnome-keyring-daemon = {
|
||||
owner = "root";
|
||||
|
||||
Reference in New Issue
Block a user