alexander: Fix SSH config
This commit is contained in:
parent
b63fcf8456
commit
9a4cbea5be
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -1,3 +1,4 @@
|
|||||||
modules/programs/emacs/mu4e.el filter=git-crypt diff=git-crypt
|
modules/programs/emacs/mu4e.el filter=git-crypt diff=git-crypt
|
||||||
modules/hardware/wifi.nix filter=git-crypt diff=git-crypt
|
modules/hardware/wifi.nix filter=git-crypt diff=git-crypt
|
||||||
secrets/default.nix filter=git-crypt diff=git-crypt
|
secrets/default.nix filter=git-crypt diff=git-crypt
|
||||||
|
lib/ports.nix filter=git-crypt diff=git-crypt
|
BIN
lib/ports.nix
Normal file
BIN
lib/ports.nix
Normal file
Binary file not shown.
@ -21,20 +21,34 @@
|
|||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = ''
|
matchBlocks = let
|
||||||
IdentityFile ~/.ssh/gitea_papatutuwawa
|
sshPort = (import ../../lib/ports.nix).sshPort;
|
||||||
IdentityFile ~/.ssh/github_polynomdivision
|
in {
|
||||||
|
ayame = {
|
||||||
Host git.polynom.me
|
port = sshPort;
|
||||||
HostName git.polynom.me
|
hostname = "78.46.184.48";
|
||||||
User git
|
user = "alexander";
|
||||||
IdentityFile ~/.ssh/gitea_papatutuwawa
|
identityFile = "~/.ssh/polynom.me_ayame";
|
||||||
|
identitiesOnly = true;
|
||||||
Host github.com
|
};
|
||||||
HostName github.com
|
"git.polynom.me" = {
|
||||||
User git
|
port = 2222;
|
||||||
IdentityFile ~/.ssh/github_polynomdivision
|
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
|
# TODO: Maybe move this somewhere else
|
||||||
|
Loading…
Reference in New Issue
Block a user