From 608c9f4ba0cfa37bbf0d6e1e1cb1dcce93f5094c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 23 Sep 2024 11:47:47 +0200 Subject: [PATCH] Fix ssh config --- home/ssh/config.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/home/ssh/config.nix b/home/ssh/config.nix index 5b86736..e97a925 100644 --- a/home/ssh/config.nix +++ b/home/ssh/config.nix @@ -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" ] { - match = "host bmo.uio.no exec \"nmcli -g GENERAL.STATE c s eduroam|grep -q -E '\\bactiv'\""; - hostname = "bmo.uio.no"; - forwardAgent = false; - }; + 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 = {