1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{ pkgs, ... }: { programs.gnupg.agent = { enable = true; enableSSHSupport = true; pinentryPackage = pkgs.pinentry-curses; settings = { enable-ssh-support = ""; ttyname = "$GPG_TTY"; default-cache-ttl = 60; max-cache-ttl = 120; allow-loopback-pinentry = ""; }; }; }