diff --git a/home/ssh.nix b/home/ssh.nix index 36e719b..aa33a4b 100644 --- a/home/ssh.nix +++ b/home/ssh.nix @@ -1,26 +1,26 @@ { ... }: { - # SSH client configuration with host-specific keys + # SSH client configuration + # TEMP: using single key 'poppy' for all hosts - create host-specific keys later programs.ssh = { enable = true; matchBlocks = { - # Forgejo (personal) — port 2222 + # All git forges use the same key for now + "git.*" = { + identityFile = "~/.ssh/poppy"; + identitiesOnly = true; + addKeysToAgent = "yes"; + }; + + # Specific hosts (port override for forgejo) "git.iscg.dev" = { - identityFile = "~/.ssh/id_ed25519_forgejo"; + identityFile = "~/.ssh/poppy"; port = 2222; identitiesOnly = true; addKeysToAgent = "yes"; }; - # GitHub - "github.com" = { - identityFile = "~/.ssh/id_ed25519"; - identitiesOnly = true; - addKeysToAgent = "yes"; - }; - - # git.sol.moe "git.sol.moe" = { identityFile = "~/.ssh/poppy"; user = "mikl";