1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

Fix gnupg-agent being kept alive

The agent is restarted automatically after it has been launched
successfully, this creates a lot of noise in the logs. This change
reloads the agent only if it has crashed, i.e. returns with a non-zero
exit code.
This commit is contained in:
Max Schlueter 2021-02-14 21:55:16 +09:00
parent 6c6eb8ace6
commit 6d4bf1a29e
No known key found for this signature in database
GPG key ID: AC34EBD08FB3857A

View file

@ -34,7 +34,7 @@ in
"${pkgs.gnupg}/bin/gpg-connect-agent" "/bye"
];
RunAtLoad = cfg.agent.enableSSHSupport;
KeepAlive = true;
KeepAlive.SuccessfulExit = false;
};
environment.extraInit = ''