From 0deb1b285f9ebf5b51e74041b65a5f0fef0b0e82 Mon Sep 17 00:00:00 2001 From: Defelo Date: Tue, 4 Mar 2025 22:10:21 +0100 Subject: [PATCH] nixos/tests/zipline: add interactive config --- nixos/tests/zipline.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/tests/zipline.nix b/nixos/tests/zipline.nix index dfda9230ea7c..023c4484a810 100644 --- a/nixos/tests/zipline.nix +++ b/nixos/tests/zipline.nix @@ -1,4 +1,5 @@ { lib, ... }: + { name = "zipline"; meta.maintainers = with lib.maintainers; [ defelo ]; @@ -20,6 +21,18 @@ networking.hosts."127.0.0.1" = [ "zipline.local" ]; }; + interactive.nodes.machine = { + services.zipline.settings.CORE_HOSTNAME = lib.mkForce "0.0.0.0"; + networking.firewall.allowedTCPPorts = [ 8000 ]; + virtualisation.forwardPorts = [ + { + from = "host"; + host.port = 8000; + guest.port = 8000; + } + ]; + }; + testScript = '' import json import re