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; serverAliveCountMax = 3;
controlMaster = "auto"; controlMaster = "auto";
controlPersist = "1s"; controlPersist = "1s";
matchBlocks = { matchBlocks = { "git.*".user = "git"; };
"git.*".user = "git";
"xenia.me.uk" = { user = "git"; port = 2222; };
};
}; };
} }

View file

@ -3,9 +3,10 @@
imports = [ ./common.nix ]; imports = [ ./common.nix ];
programs.ssh.matchBlocks = { programs.ssh.matchBlocks = {
"vanguard" = { user = "xenia"; }; "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" ] { "vanguard *xenia.me.uk" = lib.hm.dag.entryAfter [ "vanguard" ] {
hostname = "192.168.1.166"; port = 2222; hostname = "192.168.1.166";
port = 2222;
}; };
}; };
} }