ssh: use single 'poppy' key for all hosts (others don't exist yet)

This commit is contained in:
mikl 2026-07-04 00:51:00 +03:00
parent ab376d21aa
commit a689d23a8e

View file

@ -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";