alexander: Fix SSH config
This commit is contained in:
@@ -21,20 +21,34 @@
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
IdentityFile ~/.ssh/gitea_papatutuwawa
|
||||
IdentityFile ~/.ssh/github_polynomdivision
|
||||
|
||||
Host git.polynom.me
|
||||
HostName git.polynom.me
|
||||
User git
|
||||
IdentityFile ~/.ssh/gitea_papatutuwawa
|
||||
|
||||
Host github.com
|
||||
HostName github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/github_polynomdivision
|
||||
'';
|
||||
matchBlocks = let
|
||||
sshPort = (import ../../lib/ports.nix).sshPort;
|
||||
in {
|
||||
ayame = {
|
||||
port = sshPort;
|
||||
hostname = "78.46.184.48";
|
||||
user = "alexander";
|
||||
identityFile = "~/.ssh/polynom.me_ayame";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"git.polynom.me" = {
|
||||
port = 2222;
|
||||
user = "gitea";
|
||||
hostname = "git.polynom.me";
|
||||
identityFile = "~/.ssh/gitea_papatutuwawa_ed";
|
||||
};
|
||||
"github.com" = {
|
||||
user = "git";
|
||||
hostname = "github.com";
|
||||
identityFile = "~/.ssh/github_polynomdivision";
|
||||
};
|
||||
"minecraft" = {
|
||||
port = sshPort;
|
||||
user = "alexander";
|
||||
hostname = "49.12.33.24";
|
||||
identityFile = "~/.ssh/polynom.me";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Maybe move this somewhere else
|
||||
|
||||
Reference in New Issue
Block a user