commit 3b07d33424499552164aceefb7462c0197f6f138 parent d008a3c1567217485efc72fb60e3480b875e8948 Author: Silas Brack <silasbrack@gmail.com> Date: Sun, 13 Oct 2024 21:26:25 +0200 Test Diffstat:
| A | vm-forward.nix | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/vm-forward.nix b/vm-forward.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: { + services.openssh.enable = true; + virtualisation = { + forwardPorts = [ + { from = "host"; host.port = 2222; guest.port = 22; } + ]; + }; + +}