From 1171ce89afaf88f02c16b96c9393306d57070be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 17 Sep 2024 09:58:38 +0200 Subject: [PATCH] Change ssh config --- home/ssh/config.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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";