summaryrefslogtreecommitdiff
path: root/modules/pc/software/access/gnupg.nix
blob: e60da30b91ef6a926d9fedddd441dc82c3e20103 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs, ... }:
{
  programs.gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
    pinentryPackage = pkgs.pinentry-curses;
    enableExtraSocket = true;
    enableBrowserSocket = true;

    settings = {
      enable-ssh-support = "";
      ttyname = "$GPG_TTY";
      default-cache-ttl = 34560000; # 60
      max-cache-ttl = 34560000; # 120
      allow-loopback-pinentry = "";
    };
  };
}