mirror of
https://github.com/nix-community/home-manager
synced 2025-01-11 11:39:49 +01:00
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:
parent
ebbbd4f2b5
commit
6aa6556bca
1 changed files with 1 additions and 0 deletions
|
@ -240,6 +240,7 @@ in
|
||||||
ExecStart = "${pkgs.gnupg}/bin/gpg-agent --supervised"
|
ExecStart = "${pkgs.gnupg}/bin/gpg-agent --supervised"
|
||||||
+ optionalString cfg.verbose " --verbose";
|
+ optionalString cfg.verbose " --verbose";
|
||||||
ExecReload = "${pkgs.gnupg}/bin/gpgconf --reload gpg-agent";
|
ExecReload = "${pkgs.gnupg}/bin/gpgconf --reload gpg-agent";
|
||||||
|
Environment = "GNUPGHOME=${homedir}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue