Update ssh config to reflect new port config
This commit is contained in:
parent
320d76f972
commit
5941740ee4
|
@ -6,5 +6,6 @@
|
||||||
serverAliveCountMax = 3;
|
serverAliveCountMax = 3;
|
||||||
controlMaster = "auto";
|
controlMaster = "auto";
|
||||||
controlPersist = "1s";
|
controlPersist = "1s";
|
||||||
|
matchBlocks."git*".user = "git";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue