aboutsummaryrefslogtreecommitdiffstats
path: root/modules/programs/gpg/default.nix
blob: bc2d16994e3cff1887762cafcfe87e64c941b87d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  pkgs,
  ...
}:

# gpg - GNU Privacy Guard
{
  config = lib.mkIf config.programs.gpg.enable {
    services.gpg-agent = {
      enable = true;
      enableZshIntegration = true;
      defaultCacheTtl = 3600;
      maxCacheTtl = 86400;
      pinentry.package = pkgs.pinentry-gtk2;
    };
  };
}