about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/mastodon.nix
diff options
context:
space:
mode:
authorIsa <hi@f2k1.de>2024-01-26 12:30:57 +0100
committerIsa <hi@f2k1.de>2024-01-26 12:30:57 +0100
commit24930dadca021613f2a20a0fcdd656e5be371749 (patch)
treec46bf01c4fb58ba9bb669c5ff010b8b972a330d9 /nixos/modules/services/web-apps/mastodon.nix
parent10ed9173c50c3825077879887714c3aed10e141f (diff)
mastodon: set LimitNOFILE
Diffstat (limited to 'nixos/modules/services/web-apps/mastodon.nix')
-rw-r--r--nixos/modules/services/web-apps/mastodon.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix
index 538e728fcc72f..8d09d1b978283 100644
--- a/nixos/modules/services/web-apps/mastodon.nix
+++ b/nixos/modules/services/web-apps/mastodon.nix
@@ -133,6 +133,7 @@ let
         RestartSec = 20;
         EnvironmentFile = [ "/var/lib/mastodon/.secrets_env" ] ++ cfg.extraEnvFiles;
         WorkingDirectory = cfg.package;
+        LimitNOFILE = "1024000";
         # System Call Filtering
         SystemCallFilter = [ ("~" + lib.concatStringsSep " " systemCallsList) "@chown" "pipe" "pipe2" ];
       } // cfgService;