Skip to content

Commit 0deb1b2

Browse files
committed
nixos/tests/zipline: add interactive config
1 parent 6509831 commit 0deb1b2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

nixos/tests/zipline.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{ lib, ... }:
2+
23
{
34
name = "zipline";
45
meta.maintainers = with lib.maintainers; [ defelo ];
@@ -20,6 +21,18 @@
2021
networking.hosts."127.0.0.1" = [ "zipline.local" ];
2122
};
2223

24+
interactive.nodes.machine = {
25+
services.zipline.settings.CORE_HOSTNAME = lib.mkForce "0.0.0.0";
26+
networking.firewall.allowedTCPPorts = [ 8000 ];
27+
virtualisation.forwardPorts = [
28+
{
29+
from = "host";
30+
host.port = 8000;
31+
guest.port = 8000;
32+
}
33+
];
34+
};
35+
2336
testScript = ''
2437
import json
2538
import re

0 commit comments

Comments
 (0)