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;
controlMaster = "auto";
controlPersist = "1s";
matchBlocks."git*".user = "git";
};
}

View file

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