diff --git a/home/ssh/config.nix b/home/ssh/config.nix index 17a2375..5b86736 100644 --- a/home/ssh/config.nix +++ b/home/ssh/config.nix @@ -1,4 +1,9 @@ -{ pkgs, lib, ... }: +{ + pkgs, + lib, + osConfig, + ... +}: let eduroam-active = pkgs.writeShellApplication { name = "eduroam-active"; @@ -15,7 +20,7 @@ in enable = true; controlMaster = "auto"; - matchBlocks = { + 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";