From d5439b9b015486877951e99cee23237c58d731f8 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 27 Dec 2024 10:19:16 -0500 Subject: [PATCH] Gnome: try to fix keyring unlock on login --- modules/nixos/ui/desktops/gnome/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nixos/ui/desktops/gnome/default.nix b/modules/nixos/ui/desktops/gnome/default.nix index 619ce53..18f0774 100644 --- a/modules/nixos/ui/desktops/gnome/default.nix +++ b/modules/nixos/ui/desktops/gnome/default.nix @@ -117,6 +117,12 @@ in # Make sure the keyring is properly unlocked at startup. # See https://discourse.nixos.org/t/login-keyring-did-not-get-unlocked-hyprland/40869/8 - security.pam.services.gdm.enableGnomeKeyring = true; + # Also see https://wiki.archlinux.org/title/GNOME/Keyring + security.pam.services = { + gdm.enableGnomeKeyring = true; + passwd.text = lib.mkAfter '' + password optional pam_gnome_keyring.so + ''; + }; }; }