diff --git a/base.nix b/base.nix index d385cda..092cce2 100644 --- a/base.nix +++ b/base.nix @@ -101,19 +101,19 @@ recommendedOptimisation = true; recommendedGzipSettings = true; - appendConfig = lib.mkIf (!config.services.matrix-synapse-next.enable or false) '' + appendConfig = '' pcre_jit on; worker_processes auto; worker_rlimit_nofile 100000; ''; - eventsConfig = lib.mkIf (!config.services.matrix-synapse-next.enable or false) '' + eventsConfig = '' worker_connections 2048; use epoll; multi_accept on; ''; }; - systemd.services.nginx.serviceConfig = lib.mkIf (!config.services.matrix-synapse-next.enable or false) { + systemd.services.nginx.serviceConfig = lib.mkIf config.services.nginx.enable { LimitNOFILE = 65536; }; diff --git a/hosts/bicep/services/nginx/default.nix b/hosts/bicep/services/nginx/default.nix index 78786fa..891c737 100644 --- a/hosts/bicep/services/nginx/default.nix +++ b/hosts/bicep/services/nginx/default.nix @@ -11,15 +11,5 @@ "127.0.0.2" "[::1]" ]; - - appendConfig = '' - worker_processes 8; - worker_rlimit_nofile 8192; - ''; - - eventsConfig = '' - multi_accept on; - worker_connections 4096; - ''; }; }