all repos — nixfiles @ 6f9a6e147f536915c73e23d1a1e7e4848e26fcd7

System and user configuration, managed by nix and home-manager

linde: limit memory usage of searchix further
Alan Pearce alan@alanpearce.eu
Sun, 23 Mar 2025 00:09:29 +0100
commit

6f9a6e147f536915c73e23d1a1e7e4848e26fcd7

parent

6e8f5b8279c0b2daf4e5fa615e76bfa090c56b40

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M system/linde.nixsystem/linde.nix
@@ -883,7 +883,7 @@   services.searchix = {
     enable = true;
     environment = {
-      GOMEMLIMIT = "2000MiB";
+      GOMEMLIMIT = "1000MiB";
     };
     settings = {
       web =
@@ -954,6 +954,10 @@ };         nur.enable = true;
       };
     };
+  };
+  systemd.services.searchix.serviceConfig = {
+    MemoryHigh = "750M";
+    MemoryMax = "1G";
   };
 
   programs.git = {