From 6d4bf1a29e93f0fde229cb221831b15a19420b14 Mon Sep 17 00:00:00 2001 From: Max Schlueter Date: Sun, 14 Feb 2021 21:55:16 +0900 Subject: 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. --- modules/programs/gnupg.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/programs') diff --git a/modules/programs/gnupg.nix b/modules/programs/gnupg.nix index 9a67ec8..4c451ec 100644 --- a/modules/programs/gnupg.nix +++ b/modules/programs/gnupg.nix @@ -34,7 +34,7 @@ in "${pkgs.gnupg}/bin/gpg-connect-agent" "/bye" ]; RunAtLoad = cfg.agent.enableSSHSupport; - KeepAlive = true; + KeepAlive.SuccessfulExit = false; }; environment.extraInit = '' -- cgit v1.2.3