From 120f08772ec484db8cba75a212bead740f80b80a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 5 May 2023 10:08:27 +0100 Subject: [PATCH] Add freia ssh config --- home/env/ssh.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/home/env/ssh.nix b/home/env/ssh.nix index 796df37e..0274c5dd 100644 --- a/home/env/ssh.nix +++ b/home/env/ssh.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { programs.ssh = { enable = true; @@ -20,6 +20,26 @@ forwardAgent = true; }; "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 ];