Files
nixos-config/home/yolo/ssh.nix
T
Miguel Palhas 0a4dd8a192
CI / lint (push) Successful in 30s
CI / eval (push) Successful in 2m4s
fix: bypass the ssh agent for github on yolo
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>
2026-08-18 21:11:28 +01:00

54 lines
1.5 KiB
Nix

_:
# Homelab host aliases, yolo-only. Ported from the hand-written ~/.ssh/config
# 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";
IdentityFile = "~/.ssh/crowdsec-loki-10.6.10.30";
};
"jellyfin" = {
HostName = "10.6.10.18";
User = "root";
IdentityFile = "~/.ssh/crowdsec-loki-10.6.10.30";
};
"authelia" = {
HostName = "10.6.10.42";
User = "root";
IdentityFile = "~/.ssh/authelia-10.6.10.42";
};
"whisper" = {
HostName = "10.6.10.43";
User = "root";
IdentityFile = "~/.ssh/wyoming-voice";
IdentitiesOnly = true;
StrictHostKeyChecking = "accept-new";
};
"proxmox" = {
HostName = "10.1.10.3";
Port = 22022;
User = "root";
IdentityFile = "~/.ssh/proxmox-temp";
# Was `crowdsec-loki` in the hand-written config, which is no longer a
# Host — same machine, now aliased `grafana`.
ProxyJump = "grafana";
StrictHostKeyChecking = "accept-new";
};
};
}