fix: bypass the ssh agent for github on yolo
CI / lint (push) Successful in 30s
CI / eval (push) Successful in 2m4s

gpg-agent is the ssh agent here, and signing blocks forever on a pinentry
prompt with no TTY, so git push hung right after "Server accepts key".
The key file has no passphrase, so read it directly instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-08-18 21:11:28 +01:00
parent 8efd0a1139
commit 0a4dd8a192
+10
View File
@@ -3,6 +3,16 @@ _:
# on the Ubuntu box.
{
programs.ssh.settings = {
# gpg-agent serves as the ssh agent here, and signing blocks forever on a
# pinentry prompt that has no TTY in headless/agent sessions — `ssh-add -l`
# works, but git push hangs right after "Server accepts key". The key file
# has no passphrase, so read it directly and skip the agent.
"github.com" = {
IdentityAgent = "none";
IdentitiesOnly = true;
IdentityFile = "~/.ssh/id_ed25519";
};
"grafana" = {
HostName = "10.6.10.30";
User = "root";