feat: add ssh.nix with matchBlocks, pass origins (forgejo+github+solmoe)
This commit is contained in:
parent
e9ddbc5d0e
commit
eec7efabd1
4 changed files with 82 additions and 6 deletions
32
home/ssh.nix
Normal file
32
home/ssh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue