diff --git a/modules/services/nginx.nix b/modules/services/nginx.nix index 8a1814a..8517c0a 100644 --- a/modules/services/nginx.nix +++ b/modules/services/nginx.nix @@ -58,7 +58,10 @@ in { init.services.nginx = let - config = pkgs.writeText "nginx.cfg" (toNginx cfg.configuration); + config = pkgs.writeText "nginx.cfg" (toNginx ([{ + daemon = "off"; + error_log = ["/dev/stderr" "info"]; + }] ++ (if builtins.isList cfg.configuration then cfg.configuration else [ cfg.configuration ]))); in { ensureSomething.create."cache" = {