From bb2c14b964791087226420950de808c85ea3368d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 29 Sep 2024 17:05:30 +0100 Subject: [PATCH] Remove no-allow-external-cache config from gpg-agent --- .../home/services/password-store/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/system/home/services/password-store/default.nix b/system/home/services/password-store/default.nix index 278fd499..653bf831 100644 --- a/system/home/services/password-store/default.nix +++ b/system/home/services/password-store/default.nix @@ -23,16 +23,17 @@ }; }; services = { - gpg-agent = rec { - enable = true; - maxCacheTtl = 86400; - defaultCacheTtl = maxCacheTtl; - defaultCacheTtlSsh = maxCacheTtl; - pinentryPackage = lib.mkDefault pkgs.pinentry-all; - extraConfig = '' - no-allow-external-cache - ''; - }; + gpg-agent = + let + ttl = 86400; + in + { + enable = true; + maxCacheTtl = ttl; + defaultCacheTtl = ttl; + defaultCacheTtlSsh = ttl; + pinentryPackage = lib.mkDefault pkgs.pinentry-all; + }; git-sync.repositories.password-store = { path = "${config.home.homeDirectory}/.password-store"; uri = "git+https://git.xenia.me.uk/xenia/pass.git";