about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2024-03-29 15:24:15 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2024-03-29 15:24:44 +0700
commitd41bac083b07996fc6773ca7530f6ecce8fad057 (patch)
treed5bb5fc6ab51329cb64bb75333d20275e4b29bde
parentdd2a41893a568fc125d51b6e028aebda0e32d442 (diff)
downloadnixos-conf-d41bac083b07996fc6773ca7530f6ecce8fad057.tar.gz
Add workaround for nginx bug
-rw-r--r--static.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/static.nix b/static.nix
index 13f75fd..378198a 100644
--- a/static.nix
+++ b/static.nix
@@ -173,6 +173,10 @@ in {
     molly-brown.serviceConfig.SupplementaryGroups = [
       config.security.acme.certs.${domain}.group
     ];
-    nginx.serviceConfig.SupplementaryGroups = [ "shadow" ];
+    nginx.serviceConfig = {
+      SupplementaryGroups = [ "shadow" ];
+      # https://discourse.nixos.org/t/nginx-worker-processes-exit-with-signal-31-when-running-via-systemd/13471/6
+      SystemCallFilter = lib.mkForce "";
+    };
   };
 }