From 75b71199f30a712bd0f8420d7263b06407bbbcee Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 4 Sep 2023 11:16:14 +0100 Subject: [PATCH] Add extra ports to forward for Freia --- hosts/Ronin/home.nix | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/hosts/Ronin/home.nix b/hosts/Ronin/home.nix index a608e05e..8b3d7950 100644 --- a/hosts/Ronin/home.nix +++ b/hosts/Ronin/home.nix @@ -17,25 +17,31 @@ in { git.userEmail = "evie.litherland-smith@ukaea.uk"; ssh.matchBlocks = { "git.ccfe.ac.uk" = { user = "git"; }; - "jupyter" = { - localForwards = [{ - bind.port = 6702; - host.address = "localhost"; - host.port = 6702; - }]; + "freia" = { + hostname = "freia020.hpc.l"; + localForwards = [ + { + # Jupyter Lab + bind.port = 6702; + host.address = "localhost"; + host.port = 6702; + } + { + # Dash/Plotly + bind.port = 8050; + host.address = "localhost"; + host.port = 8050; + } + ]; }; - "freia jupyter" = { hostname = "freia020.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 jupyter" - "freia???" - "heimdall" - "heimdall???" - ] { user = "elitherl"; }; + "freia* heimdall*" = + lib.hm.dag.entryAfter [ "freia" "freia???" "heimdall" "heimdall???" ] { + user = "elitherl"; + }; }; firefox.profiles.default = { settings."browser.startup.homepage" = "https://nucleus.ukaea.uk";