nixos/home/ssh/work.nix

34 lines
685 B
Nix
Raw Normal View History

{
2023-05-17 17:10:18 +01:00
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";
};
2023-05-17 17:10:18 +01:00
"freia???" = lib.hm.dag.entryAfter ["freia"] {
hostname = "%h.hpc.l";
};
2023-05-17 17:10:18 +01:00
"freia* jupyter" = lib.hm.dag.entryAfter ["freia" "freia???" "jupyter"] {
user = "elitherl";
};
};
}