summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
authorMax Schlueter <me@maxschlueter.com>2021-02-14 21:55:16 +0900
committerMax Schlueter <me@maxschlueter.com>2021-02-14 21:55:16 +0900
commit6d4bf1a29e93f0fde229cb221831b15a19420b14 (patch)
tree790696429232d6405b169ca64e6e70c9d27115b0 /modules/programs
parent6c6eb8ace6599a33eeb33e28453a601ab02e523e (diff)
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.
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/gnupg.nix2
1 files changed, 1 insertions, 1 deletions
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 = ''