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
This commit is contained in:
fricklerhandwerk 2021-04-19 01:52:31 +02:00 committed by GitHub
parent ebbbd4f2b5
commit 6aa6556bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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