From 6aa6556bcab6dc0f6398b4daa8404d788fd7a6a2 Mon Sep 17 00:00:00 2001 From: fricklerhandwerk Date: Mon, 19 Apr 2021 01:52:31 +0200 Subject: [PATCH] gpg-agent: add GNUPG_HOMEDIR to environment (#1932) otherwise, if `programs.gpg.homedir` is not set to default, calls to `gpg` will fail to pick up anything related to secrets --- modules/services/gpg-agent.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/services/gpg-agent.nix b/modules/services/gpg-agent.nix index 41a1ff39..1092dd87 100644 --- a/modules/services/gpg-agent.nix +++ b/modules/services/gpg-agent.nix @@ -240,6 +240,7 @@ in ExecStart = "${pkgs.gnupg}/bin/gpg-agent --supervised" + optionalString cfg.verbose " --verbose"; ExecReload = "${pkgs.gnupg}/bin/gpgconf --reload gpg-agent"; + Environment = "GNUPGHOME=${homedir}"; }; };