nixos/home/ssh/work.nix

32 lines
776 B
Nix
Raw Normal View History

{
2023-05-17 17:10:18 +01:00
pkgs,
lib,
...
}: {
imports = [./default.nix];
2023-05-17 17:10:18 +01:00
home.packages = with pkgs; [sshfs];
programs.ssh.matchBlocks = {
"git.ccfe.ac.uk" = {user = "git";};
"jupyter" = {
localForwards = [
{
bind.port = 6702;
host.address = "localhost";
host.port = 6702;
}
];
};
2023-07-17 15:44:51 +01:00
"freia jupyter" = {hostname = "freia020.hpc.l";};
2023-06-27 14:59:50 +01:00
"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"
2023-07-17 15:44:51 +01:00
"freia jupyter"
2023-06-27 14:59:50 +01:00
"freia???"
"heimdall"
"heimdall???"
] {user = "elitherl";};
};
}