From 18ef2f537bd83ec5fbfca8704d901912b6c4a145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 16 Jan 2024 23:54:24 +0200 Subject: [PATCH] vm: forward 8001 --- vm.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/vm.nix b/vm.nix index ad42f1c..34c80df 100644 --- a/vm.nix +++ b/vm.nix @@ -29,7 +29,16 @@ hashedPassword = ""; }; }; - virtualisation.graphics = false; + virtualisation = { + graphics = false; + forwardPorts = [ + { + from = "host"; + host.port = 8001; + guest.port = 8001; + } + ]; + }; security.sudo.wheelNeedsPassword = false; services.getty.autologinUser = "nixos"; networking = {