2020-11-03 19:21:10 +01:00
|
|
|
{
|
|
|
|
name = "lighttpd";
|
2020-11-21 18:41:36 +01:00
|
|
|
|
|
|
|
nodes.server = { pkgs, ... }: {
|
|
|
|
imports = [ ../nixos-modules/hardware.nix ../nixos-modules/systemd.nix ];
|
|
|
|
networking.interfaces.eth1.genode.stack = "lwip";
|
2020-11-07 19:12:55 +01:00
|
|
|
services.lighttpd.enable = true;
|
2020-11-21 18:41:36 +01:00
|
|
|
systemd.services.lighttpd.genode = {
|
|
|
|
enable = true;
|
|
|
|
interface = "eth1";
|
|
|
|
};
|
2020-11-03 19:21:10 +01:00
|
|
|
};
|
2020-11-21 18:41:36 +01:00
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
server.start()
|
|
|
|
server.wait_until_serial_output('lwIP Nic interface up address=192.168.1.2')
|
|
|
|
'';
|
2020-11-03 19:21:10 +01:00
|
|
|
}
|