Compare commits
No commits in common. "5039842006a8e8721aa7185855dc71beadb9acdf" and "85c5aa239a8dc05fe2ea4b61083679adc998f2d5" have entirely different histories.
5039842006
...
85c5aa239a
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1 +1 @@
|
||||
{ imports = [ ./config.nix ]; }
|
||||
{ imports = [ ./gunter.nix ]; }
|
||||
|
16
home/ssh/gunter.nix
Normal file
16
home/ssh/gunter.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
@ -50,7 +50,7 @@
|
||||
time.timeZone = "Europe/Oslo";
|
||||
|
||||
# Enable opengl
|
||||
hardware.graphics = {
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
|
Loading…
x
Reference in New Issue
Block a user