summaryrefslogtreecommitdiff
path: root/modules/system/access/gnupg.nix
blob: aeffb232a0697d3ad9840b114a9465a79883826f (plain) (blame)
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 = 34560000; # 60
      max-cache-ttl = 34560000; # 120
      allow-loopback-pinentry = "";
    };
  };
}