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";