feat: add ssh.nix with matchBlocks, pass origins (forgejo+github+solmoe)

This commit is contained in:
mikl 2026-07-01 18:43:33 +03:00
commit eec7efabd1
4 changed files with 82 additions and 6 deletions

32
home/ssh.nix Normal file
View file

@ -0,0 +1,32 @@
{ ... }:
{
# SSH client configuration with host-specific keys
programs.ssh = {
enable = true;
matchBlocks = {
# Forgejo (personal) — port 2222
"git.iscg.dev" = {
identityFile = "~/.ssh/id_ed25519_forgejo";
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";
identitiesOnly = true;
addKeysToAgent = "yes";
};
};
};
}