about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLeah Amelia Chen <hi@pluie.me>2023-11-04 23:15:15 +0100
committerJörg Thalheim <Mic92@users.noreply.github.com>2023-11-05 12:22:52 +0100
commit30f2f955fe8d59abee4ee0521d854a61c4e0fd2e (patch)
tree9e7b420b7da3fb84c39a0a71febece69b872e8d3 /nixos
parentd95fe6caafdb5f5e3419d4f32b9d8ec0fbcdb564 (diff)
nixos/greetd: autostart GNOME Keyring when enabled
The PAM service `greetd` creates now autostarts GNOME Keyring when it is
enabled via `services.gnome.gnome-keyring.enable`.

Should cause a lot fewer headaches for people like me who didn't know
why GNOME Keyring was complaining that it was never supplied with login details.

Fixes #246197
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/display-managers/greetd.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/display-managers/greetd.nix b/nixos/modules/services/display-managers/greetd.nix
index 3a0f59f62afbd..89cb81f3a78f6 100644
--- a/nixos/modules/services/display-managers/greetd.nix
+++ b/nixos/modules/services/display-managers/greetd.nix
@@ -59,6 +59,7 @@ in
     security.pam.services.greetd = {
       allowNullPassword = true;
       startSession = true;
+      enableGnomeKeyring = mkDefault config.services.gnome.gnome-keyring.enable;
     };
 
     # This prevents nixos-rebuild from killing greetd by activating getty again