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;
controlMaster = "auto";
matchBlocks = lib.mkIf (osConfig.system.name == "magicman") {
"bmo.uio.no-on-eduroam" = lib.hm.dag.entryBefore [ "bmo.uio.no" ] {
matchBlocks = {
"bmo.uio.no-on-eduroam" = (
lib.mkIf (osConfig.system.name == "magicman") (
lib.hm.dag.entryBefore [ "bmo.uio.no" ] {
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" = {
setEnv = {