{ pkgs, dockerTools, lib, ... }: with lib; { curl = dockerTools.buildLayeredImage { name = "curl"; tag = "latest"; config.Cmd = ["${pkgs.bash}" "-c" "sleep infinity"]; contents = [pkgs.bash pkgs.curl pkgs.cacert]; }; nginx = let nginxPort = "80"; nginxConf = pkgs.writeText "nginx.conf" '' user nginx nginx; daemon off; error_log /dev/stdout info; pid /dev/null; events {} http { access_log /dev/stdout; server { listen ${nginxPort}; index index.html; location / { root ${nginxWebRoot}; } } } ''; nginxWebRoot = pkgs.writeTextDir "index.html" ''