nixos/home/ssh/work.nix

31 lines
687 B
Nix

{ pkgs, lib, ... }:
{
imports = [ ./common.nix ];
home.packages = with pkgs; [ sshfs ];
programs.ssh.matchBlocks = {
"batch" = {
user = "cxsbatch";
hostname = "heimdall115.jetdata.eu";
};
"jupyter" = {
hostname = "freia022.hpc.l";
localForwards = [
{
bind.port = 6702;
host.address = "localhost";
host.port = 6702;
}
];
};
"freia" = {
hostname = "freia022.hpc.l";
};
"freia???" = lib.hm.dag.entryAfter [ "freia" ] {
hostname = "%h.hpc.l";
};
"freia* jupyter" = lib.hm.dag.entryAfter [ "freia" "freia???" "jupyter" ] {
user = "elitherl";
};
};
}