mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-23 09:18:35 +02:00
fix: darwin - gpg: public key decryption failed: No pinentry
This commit is contained in:
@@ -1,7 +1,20 @@
|
|||||||
{
|
{
|
||||||
|
config,
|
||||||
|
username,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
homeDir = config.users.users."${username}".home;
|
||||||
|
in {
|
||||||
# https://github.com/LnL7/nix-darwin/blob/master/modules/programs/gnupg.nix
|
# https://github.com/LnL7/nix-darwin/blob/master/modules/programs/gnupg.nix
|
||||||
|
# try `pkill gpg-agent` if you have issues(such as `no pinentry`)
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = false;
|
enableSSHSupport = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# enable logs for debugging
|
||||||
|
launchd.user.agents.gnupg-agent.serviceConfig = {
|
||||||
|
StandardErrorPath = "${homeDir}/Library/Logs/gnupg-agent.stderr.log";
|
||||||
|
StandardOutPath = "${homeDir}/Library/Logs/gnupg-agent.stdout.log";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user