Fix ordering of ssh config file

This commit is contained in:
Evie Litherland-Smith 2023-05-16 13:08:57 +01:00
parent 26382d8d20
commit ba33f5f6cb
2 changed files with 4 additions and 6 deletions

View file

@ -7,9 +7,6 @@
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "1s";
matchBlocks = {
"git.*".user = "git";
"xenia.me.uk" = { user = "git"; port = 2222; };
};
matchBlocks = { "git.*".user = "git"; };
};
}

View file

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