Fix ssh config
Some checks are pending
pre-commit / pre-commit (push) Waiting to run

This commit is contained in:
Torjus Håkestad 2024-09-23 11:47:47 +02:00
parent b95801a563
commit 608c9f4ba0

View File

@ -20,12 +20,16 @@ in
enable = true; enable = true;
controlMaster = "auto"; controlMaster = "auto";
matchBlocks = lib.mkIf (osConfig.system.name == "magicman") { matchBlocks = {
"bmo.uio.no-on-eduroam" = lib.hm.dag.entryBefore [ "bmo.uio.no" ] { "bmo.uio.no-on-eduroam" = (
match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\""; lib.mkIf (osConfig.system.name == "magicman") (
hostname = "bmo.uio.no"; lib.hm.dag.entryBefore [ "bmo.uio.no" ] {
forwardAgent = false; match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\"";
}; hostname = "bmo.uio.no";
forwardAgent = false;
}
)
);
"bmo.uio.no" = { "bmo.uio.no" = {
setEnv = { setEnv = {