diff options
-rw-r--r-- | linux.nix | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -356,7 +356,7 @@ in gpg-agent = { enable = true; - enableScDaemon = true; + enableScDaemon = true; # smart card support defaultCacheTtl = 1800; # 30 minutes maxCacheTtl = 7200; # 2 hours enableSshSupport = false; @@ -412,4 +412,16 @@ in enable = true; }; }; + + systemd.user = { + services = { + "gpg-refresh".Service.ExecStart = "${pkgs.gnupg}/bin/gpg --refresh"; + }; + timers = { + "gpg-refresh" = { + Install.WantedBy = ["timers.target"]; + Timer.OnCalendar = "daily"; + }; + }; + }; } |