diff options
Diffstat (limited to 'home/gpg.nix')
| -rw-r--r-- | home/gpg.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/home/gpg.nix b/home/gpg.nix new file mode 100644 index 0000000..134c49f --- /dev/null +++ b/home/gpg.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, ... }: +with lib; { + config = { + programs.gpg = mkIf (!config.home.isolation.active) { + enable = true; + }; + + services.gpg-agent = mkIf (!config.home.isolation.active) { + enable = true; + + enableBashIntegration = true; + enableZshIntegration = true; + + enableExtraSocket = true; + enableSshSupport = true; + + defaultCacheTtl = 7200; + defaultCacheTtlSsh = 7200; + + maxCacheTtl = 21600; + maxCacheTtlSsh = 21600; + + pinentryFlavor = "gtk2"; + }; + }; +} |
