nixos/home/ssh/work.nix

31 lines
634 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 = {
"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";
};
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";
};
};
}