Change ssh config
This commit is contained in:
parent
26a49133e3
commit
1171ce89af
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user