From f2d9af274569734c08edee2fbd4895e8704429c3 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 5 Mar 2020 15:05:21 +0000 Subject: Support gpg-agent with home-manager A previous commit supported gpg.conf; this commit supports gpg-agent.conf. I still have other files in my .gnupg directory that I should audit. --- configs/shared/.config/nixpkgs/home.nix | 6 ++++++ configs/shared/.gnupg/gpg-agent.conf | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 configs/shared/.gnupg/gpg-agent.conf diff --git a/configs/shared/.config/nixpkgs/home.nix b/configs/shared/.config/nixpkgs/home.nix index f37454165e6d..d9b3cae931a8 100644 --- a/configs/shared/.config/nixpkgs/home.nix +++ b/configs/shared/.config/nixpkgs/home.nix @@ -81,4 +81,10 @@ ############################################################################## services.lorri.enable = true; + + services.gpg-agent = { + enable = true; + defaultCacheTtl = 7200; + maxCacheTtl = 7200; + }; } diff --git a/configs/shared/.gnupg/gpg-agent.conf b/configs/shared/.gnupg/gpg-agent.conf deleted file mode 100644 index 7c731e9bb592..000000000000 --- a/configs/shared/.gnupg/gpg-agent.conf +++ /dev/null @@ -1,2 +0,0 @@ -default-cache-ttl 7200 -max-cache-ttl 7200 -- cgit 1.4.1