Compare commits

..

No commits in common. "5039842006a8e8721aa7185855dc71beadb9acdf" and "85c5aa239a8dc05fe2ea4b61083679adc998f2d5" have entirely different histories.

4 changed files with 18 additions and 37 deletions

View File

@ -1,35 +0,0 @@
{ pkgs, lib, ... }:
let
eduroam-active = pkgs.writeShellApplication {
name = "eduroam-active";
runtimeInputs = with pkgs; [
networkmanager
];
text = ''
nmcli -g GENERAL.STATE c s interface|grep -q -E '\bactiv'
'';
};
in
{
programs.ssh = {
enable = true;
controlMaster = "auto";
matchBlocks = {
"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;
};
"bmo.uio.no" = {
setEnv = {
# TERM = "xterm-256color";
};
hostname = "bmo.uio.no";
forwardAgent = false;
proxyJump = "torjus@rlogin.uio.no";
};
};
};
}

View File

@ -1 +1 @@
{ imports = [ ./config.nix ]; }
{ imports = [ ./gunter.nix ]; }

16
home/ssh/gunter.nix Normal file
View File

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
programs.ssh = {
enable = true;
controlMaster = "auto";
matchBlocks."bmo.uio.no" = {
setEnv = {
# TERM = "xterm-256color";
};
hostname = "bmo.uio.no";
forwardAgent = false;
proxyJump = "torjus@rlogin.uio.no";
};
};
}

View File

@ -50,7 +50,7 @@
time.timeZone = "Europe/Oslo";
# Enable opengl
hardware.graphics = {
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver