diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-03-20 15:24:56 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-03-20 18:30:38 -0600 |
| commit | 718a2f662d1c1c1951ef5795ae1b5c4f9b75c1f0 (patch) | |
| tree | 7d27c4b7d3d149471dad78b1ba18f57ad1d4d06b | |
| parent | 2496ea8d89e9dd5bd9779d7f8c8666e1ffe4a8fd (diff) | |
home/gpg: initial commit
Diffstat (limited to '')
| -rw-r--r-- | home/default.nix | 1 | ||||
| -rw-r--r-- | home/gpg.nix | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix index 3347764..0a87630 100644 --- a/home/default.nix +++ b/home/default.nix @@ -4,6 +4,7 @@ with lib; { ./desktop.nix ./environ.nix ./git.nix + ./gpg.nix ./graphics.nix ./isolation.nix ./mail 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"; + }; + }; +} |
