2023-03-03 23:33:37 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
programs.bash.initExtra = ''
|
|
|
|
# ssh autocomplete
|
|
|
|
if test -f ~/.ssh/config; then
|
2024-05-31 00:39:40 +02:00
|
|
|
complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" ssh
|
|
|
|
complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" rssh
|
|
|
|
complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" scp
|
|
|
|
complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" remote-init
|
|
|
|
complete -W "$(cat ~/.ssh/config | grep "^Host " | cut -d" " -f2- | grep -v '\*')" remote-add
|
2023-03-03 23:33:37 +01:00
|
|
|
fi
|
|
|
|
'';
|
2023-03-11 03:39:21 +01:00
|
|
|
|
|
|
|
programs.ssh.enable = true;
|
|
|
|
programs.ssh.controlMaster = "yes";
|
|
|
|
programs.ssh.compression = true;
|
|
|
|
programs.ssh.matchBlocks = {
|
|
|
|
"*".serverAliveInterval = 10;
|
|
|
|
"*".serverAliveCountMax = 3;
|
2024-08-03 21:12:13 +02:00
|
|
|
"git.*".forwardX11 = false;
|
2023-03-13 01:15:27 +01:00
|
|
|
"gitea.*".forwardX11 = false;
|
2024-08-03 21:12:13 +02:00
|
|
|
"github.com".forwardX11 = false;
|
2023-03-13 01:15:27 +01:00
|
|
|
"gogs.*".forwardX11 = false;
|
|
|
|
"*.pbsds.net".forwardX11 = true;
|
2023-03-19 04:23:38 +01:00
|
|
|
"*.pbsds.net".forwardX11Trusted = true;
|
2023-03-11 03:39:21 +01:00
|
|
|
"*.ntnu.no".user = "pederbs";
|
|
|
|
"*.pvv.org".user = "pederbs";
|
2024-04-27 23:31:32 +02:00
|
|
|
"*.hpc.ntnu.no".proxyJump = "isvegg.pvv.ntnu.no";
|
|
|
|
"*.idi.ntnu.no".proxyJump = "isvegg.pvv.ntnu.no";
|
2023-03-11 03:39:21 +01:00
|
|
|
|
|
|
|
# me
|
2024-04-27 23:31:32 +02:00
|
|
|
"garp.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
|
|
|
|
"eple.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
|
|
|
|
"bolle.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
|
2024-01-31 22:17:55 +01:00
|
|
|
"pederbs.idi.ntnu.no" = {};
|
|
|
|
"brumlebasse.pbsds.net".port = 2222;
|
2023-03-11 03:39:21 +01:00
|
|
|
"knut.pbsds.net".port = 23;
|
|
|
|
"nord.pbsds.net".port = 24;
|
2023-06-19 11:46:09 +02:00
|
|
|
"sopp.pbsds.net".port = 26;
|
2023-03-19 04:23:38 +01:00
|
|
|
"noximilien.pbsds.net" = {};
|
2024-04-27 23:31:32 +02:00
|
|
|
"rocm.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
|
2023-03-11 03:39:21 +01:00
|
|
|
|
2024-08-20 03:23:38 +02:00
|
|
|
# nix-community
|
2024-10-08 15:17:08 +02:00
|
|
|
"darwin-build-box.nix-community.org" = {};
|
2024-08-20 03:23:38 +02:00
|
|
|
|
2023-03-11 03:39:21 +01:00
|
|
|
# ntnu
|
2024-08-03 21:12:13 +02:00
|
|
|
"garmr.idi.ntnu.no".forwardX11 = true;
|
|
|
|
"heid.idi.ntnu.no" = {}; #.forwardX11 = true;
|
|
|
|
"idun.hpc.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
"login.stud.ntnu.no" = {};
|
2024-08-03 21:12:13 +02:00
|
|
|
"malvik.idi.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
"oppdal.idi.ntnu.no" = {};
|
|
|
|
"selbu.idi.ntnu.no" = {};
|
2024-08-03 21:12:13 +02:00
|
|
|
"snotra.idi.ntnu.no" = {};
|
|
|
|
"stud.ntnu.no".hostname = "login.stud.ntnu.no";
|
|
|
|
/* "idun-login1.hpc.ntnu.no" = {}; */
|
|
|
|
/* "idun-login2.hpc.ntnu.no" = {}; */
|
|
|
|
/* "snotra-login1.idi.ntnu.no" = {}; */
|
2024-04-27 23:31:32 +02:00
|
|
|
"clab01.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab02.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab03.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab04.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab05.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab06.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab07.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab08.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab09.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab10.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab11.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab12.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab13.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab14.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab15.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab16.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab17.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab18.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab19.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab20.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab21.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab22.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab23.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab24.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab25.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
|
|
|
"clab26.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
2024-08-03 21:12:13 +02:00
|
|
|
/* "clab27.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no"; */
|
|
|
|
/* "clab28.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no"; */
|
2023-03-11 03:39:21 +01:00
|
|
|
|
|
|
|
# NVG
|
|
|
|
"nvg.ntnu.no".hostname = "login.stud.ntnu.no";
|
2024-08-03 21:12:13 +02:00
|
|
|
"login.stud.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
|
|
|
|
# pvv
|
|
|
|
"balduzius.pvv.ntnu.no".user = "root";
|
2024-08-10 17:00:03 +02:00
|
|
|
"bekkalokk.pvv.ntnu.no" = {}; # pvv-web pvv-wiki pvv-webmail
|
|
|
|
"bicep.pvv.ntnu.no" = {}; # pvv-databases pvv-synapse
|
2023-03-11 03:39:21 +01:00
|
|
|
"brzeczyszczykiewicz.pvv.ntnu.no" = {};
|
|
|
|
"demiurgen.pvv.ntnu.no" = {};
|
2024-08-03 21:12:13 +02:00
|
|
|
"drolsum.pvv.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
"dvask-mgmt.pvv.ntnu.no".user = "root";
|
|
|
|
"eirin.pvv.ntnu.no" = {};
|
2024-08-03 21:12:13 +02:00
|
|
|
"georg.pvv.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
"git.pvv.ntnu.no" = {};
|
2024-08-10 17:00:03 +02:00
|
|
|
"orchid.pvv.ntnu.no" = {};
|
2024-08-20 03:23:38 +02:00
|
|
|
"wegonke.pvv.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
"hildring.pvv.ntnu.no" = {};
|
|
|
|
"innovation.pvv.ntnu.no".user = "root";
|
|
|
|
"isvegg.pvv.ntnu.no" = {};
|
|
|
|
"lommel.pvv.ntnu.no" = {};
|
|
|
|
"microbel.pvv.ntnu.no" = {};
|
|
|
|
"principal.pvv.ntnu.no".user = "root";
|
2024-08-10 17:00:03 +02:00
|
|
|
"shark.pvv.ntnu.no" = {};
|
2023-03-11 03:39:21 +01:00
|
|
|
"skrott.pvv.ntnu.no".user = "root";
|
2024-08-03 21:12:13 +02:00
|
|
|
"sleipner.pvv.ntnu.no".user = "root";
|
2023-03-11 03:39:21 +01:00
|
|
|
"tallulah.pvv.ntnu.no" = {};
|
|
|
|
"tom.pvv.ntnu.no" = {};
|
|
|
|
"toriel.pvv.ntnu.no".user = "root";
|
2024-08-03 21:12:13 +02:00
|
|
|
/* "alphys.pvv.ntnu.no".user = "root"; */
|
|
|
|
/* "dash8.pvv.ntnu.no" = {}; */
|
|
|
|
/* "essendrop.pvv.ntnu.no" = {}; */
|
|
|
|
/* "fenris.pvv.ntnu.no".user = "root"; */
|
|
|
|
/* "hasub.pvv.ntnu.no" = {}; */
|
|
|
|
/* "knakelibrak.pvv.ntnu.no" = {}; */
|
|
|
|
/* "monty.pvv.ntnu.no" = {}; */
|
|
|
|
/* "nsa.pvv.ntnu.no" = {}; */
|
|
|
|
/* "skrotnisse.pvv.ntnu.no" = {}; */
|
|
|
|
/* "spikkjeposche.pvv.ntnu.no" = {}; */
|
|
|
|
/* "tim.pvv.ntnu.no" = {}; */
|
2023-03-11 03:39:21 +01:00
|
|
|
|
|
|
|
# fyrkat
|
2024-02-25 15:45:35 +01:00
|
|
|
#"fyrkat.no".hostname = "fridge.fyrkat.no";
|
2024-04-27 23:31:32 +02:00
|
|
|
#"*.fyrkat.no".proxyJump = "isvegg.pvv.ntnu.no";
|
2024-06-16 13:25:03 +02:00
|
|
|
"fridge.fyrkat.no".port = 222;
|
2023-03-11 03:39:21 +01:00
|
|
|
"fil.fyrkat.no" = {};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-03-03 23:33:37 +01:00
|
|
|
}
|