~ehmry/sigil

7f414b1725f653bb271fa8d4ce07a4fa526617f6 — Emery Hemingway 3 years ago 2b7111a 3e734ae staging
WiP! lighttpd
1 files changed, 13 insertions(+), 3 deletions(-)

M tests/lighttpd.nix
M tests/lighttpd.nix => tests/lighttpd.nix +13 -3
@@ 1,8 1,18 @@
{
  name = "lighttpd";
  machine = { pkgs, ... }: {
    imports = [ ../nixos-modules/systemd.nix ];

  nodes.server = { pkgs, ... }: {
    imports = [ ../nixos-modules/hardware.nix ../nixos-modules/systemd.nix ];
      networking.interfaces.eth1.genode.stack = "lwip";
    services.lighttpd.enable = true;
    systemd.services.lighttpd.genode.enable = true;
      systemd.services.lighttpd.genode = {
        enable = true;
        interface = "eth1";
      };
  };

  testScript = ''
    server.start()
    server.wait_until_serial_output('lwIP Nic interface up address=192.168.1.2')
  '';
}