From 8d8f6d7db086d6b41248036468f2aeac4ea4fb62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Wed, 30 Oct 2024 18:38:39 +0000 Subject: [PATCH] Also forward SSH port --- services/vm/interactive-vm.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/vm/interactive-vm.nix b/services/vm/interactive-vm.nix index dd94309c..cf9cbd95 100644 --- a/services/vm/interactive-vm.nix +++ b/services/vm/interactive-vm.nix @@ -44,12 +44,16 @@ ]; }; - # we can't forward port 80 or 443, so let's run nginx on a different port networking.firewall.allowedTCPPorts = [ 8443 8080 ]; services.nginx.defaultSSLListenPort = 8443; services.nginx.defaultHTTPListenPort = 8080; virtualisation.forwardPorts = [ + { + from = "host"; + host.port = 22222; + guest.port = 22; + } { from = "host"; host.port = 8080;