about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-03-25 15:45:41 +0100
committerProfpatsch <mail@profpatsch.de>2021-03-25 15:46:54 +0100
commit1e6e97836c5281b18929e43877025ff78b689e76 (patch)
treeb022180db1afbe7cdfc81477a20b4ef0fbc9989b /machines/profpatsch
parent5d902840e46a3c7b9ceaaa6547ed7b417686eab9 (diff)
modules/programs/gnupg: allow extraConfig for gpg-agent.conf
Since we pass the config, the home directory config isn’t picked up
anymore, so I need to pass it via `extraConfig`.
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/shiki.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index 1ee8702d..2fc801fc 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -355,6 +355,13 @@ in {
       agent = {
         enable = true;
         sshSupport = true;
+        # I only want to unlock it once per session
+        extraConfig = ''
+          default-cache-ttl 34560000
+          default-cache-ttl-ssh 34560000
+          max-cache-ttl 34560000
+          max-cache-ttl-ssh 34560000
+        '';
       };
     };