Update ssh config to reflect new port config

This commit is contained in:
Evie Litherland-Smith 2023-05-26 08:55:48 +01:00
parent 320d76f972
commit 5941740ee4
2 changed files with 6 additions and 3 deletions

View file

@ -6,5 +6,6 @@
serverAliveCountMax = 3; serverAliveCountMax = 3;
controlMaster = "auto"; controlMaster = "auto";
controlPersist = "1s"; controlPersist = "1s";
matchBlocks."git*".user = "git";
}; };
} }

View file

@ -1,10 +1,12 @@
{lib, ...}: { {lib, ...}: {
imports = [./common.nix]; imports = [./common.nix];
programs.ssh.matchBlocks = { programs.ssh.matchBlocks = {
"vanguard" = {user = "xenia";}; "vanguard" = {
"git.xenia.me.uk" = {user = "gitea";}; user = "xenia";
"vanguard *xenia.me.uk" = lib.hm.dag.entryAfter ["vanguard" "git.xenia.me.uk"] {
hostname = "192.168.1.166"; hostname = "192.168.1.166";
};
"git.xenia.me.uk" = lib.hm.dag.entryBefore ["git*"] {
user = "gitea";
port = 2222; port = 2222;
}; };
}; };