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

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