home/ssh: register kyoto-u machines

This commit is contained in:
2025-10-03 10:46:51 +09:00
parent 5b4cf2289f
commit 96631ae9cf
2 changed files with 26 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ in
./home.nix
./other.nix
./pvv.nix
./kyoto-u.nix
];
config = lib.mkIf cfg.enable {

View File

@@ -0,0 +1,25 @@
{ lib, ... }:
let
default = {
user = "oysteikt";
identityFile = [ "~/.ssh/id_ed25519" ];
};
in
{
programs.ssh.matchBlocks = {
"io" = default // {
hostname = "io.kuis.kyoto-u.ac.jp";
# SOCKS proxy for access to internal web.
dynamicForwards = [{ port = 8080; }];
};
} // (lib.genAttrs [
"argo"
"procyon"
"apus"
"vega"
"leo"
] (name: default // {
hostname = "${name}.fos.kuis.kyoto-u.ac.jp";
proxyJump = "io";
}));
}