summaryrefslogtreecommitdiff
path: root/modules/programs/gnupg.nix
blob: 604781d5a6b3f9a9f0bce1f40ffcea586f07bdf5 (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 = 60;
      max-cache-ttl = 120;
      allow-loopback-pinentry = "";
    };
  };
}