nixos/home/ssh/work.nix

33 lines
795 B
Nix

{
pkgs,
lib,
...
}: {
imports = [./default.nix];
home.packages = with pkgs; [sshfs];
programs.ssh.matchBlocks = {
"git.ccfe.ac.uk" = {user = "git";};
"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";};
"heimdall" = {hostname = "heimdall003.jet.uk";};
"heimdall???" = lib.hm.dag.entryAfter ["heimdall"] {hostname = "%h.jet.uk";};
"freia* jupyter" = lib.hm.dag.entryAfter [
"jupyter"
"freia"
"freia???"
"heimdall"
"heimdall???"
] {user = "elitherl";};
};
}