Add freia ssh config

This commit is contained in:
Evie Litherland-Smith 2023-05-05 10:08:27 +01:00
parent 23c50c3b10
commit 120f08772e

22
home/env/ssh.nix vendored
View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
@ -20,6 +20,26 @@
forwardAgent = true; forwardAgent = true;
}; };
"git.ccfe.ac.uk".user = "git"; "git.ccfe.ac.uk".user = "git";
"batch" = {
user = "cxsbatch";
hostname = "heimdall115.jetdata.eu";
};
"freia" = {
hostname = "freia022.hpc.l";
remoteForwards = [
{
bind.port = 6702;
host.address = "localhost";
host.port = 6702;
}
];
};
"freia???" = lib.hm.dag.entryAfter ["freia"] {
hostname = "%h.hpc.l";
};
"freia*" = lib.hm.dag.entryAfter ["freia???"] {
user = "elitherl";
};
}; };
}; };
home.packages = with pkgs; [ sshfs ]; home.packages = with pkgs; [ sshfs ];