From 9bb09ee8f4e08dc4ad58d955f4434b480aa621d6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 15 Jun 2021 18:17:37 +0200 Subject: [PATCH] modules: services: indexers: limit Jackett memory --- modules/services/indexers.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/services/indexers.nix b/modules/services/indexers.nix index 07e0f52..11d525c 100644 --- a/modules/services/indexers.nix +++ b/modules/services/indexers.nix @@ -21,6 +21,15 @@ in enable = true; }; + # Jackett wants to eat *all* my RAM if left to its own devices + systemd.services.jackett = { + serviceConfig = { + MemoryHigh = "15%"; + MemoryMax = "25%"; + }; + }; + + services.nginx.virtualHosts."${jackettDomain}" = lib.mkIf cfg.jackett.enable { forceSSL = true;