Change ssh config

This commit is contained in:
Torjus Håkestad 2024-09-17 09:58:38 +02:00
parent 26a49133e3
commit 1171ce89af

View File

@ -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";