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

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