gpg: Increase passphrase remembering timeout

Sweet relief.
This commit is contained in:
Geoffrey Frogeye 2024-04-29 12:26:39 +02:00
parent d276581d94
commit 7b8ff04f5d
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -34,13 +34,17 @@
trust = "ultimate"; trust = "ultimate";
}]; }];
}; };
services.gpg-agent = { services.gpg-agent = rec {
enableBashIntegration = true; enableBashIntegration = true;
enableZshIntegration = true; enableZshIntegration = true;
pinentryFlavor = "gnome3"; pinentryFlavor = "gnome3";
# gnome3 is nicer, but requires gcr as a dbus package. # gnome3 is nicer, but requires gcr as a dbus package.
# Which is in my NixOS config, and on non-NixOS too. # Which is in my NixOS config, and on non-NixOS too.
# It will fall back to ncurses when running in non-graphics mode. # It will fall back to ncurses when running in non-graphics mode.
defaultCacheTtl = 3600;
defaultCacheTtlSsh = defaultCacheTtl;
maxCacheTtl = 3*3600;
maxCacheTtlSsh = maxCacheTtl;
}; };
}; };
} }