about summary refs log tree commit diff
path: root/users/glittershark/system
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-12-15T23·12-0500
committerglittershark <grfn@gws.fyi>2020-12-15T23·59+0000
commitfea146deb58a37e8dea6c900cba6b0404ddecdb0 (patch)
treefadf5d4dfc7952422a239d052222eb1eab4fd6b9 /users/glittershark/system
parenta9014203b602d62d7cd932cd75385ea42bb7fdfa (diff)
fix(gs/yeren): Increase fd soft limit to 65535 r/2015
I'm building a database! I have to open all the files!

Change-Id: Ie77ad6fafe837c0ddba6b5d56cdc06d787807d4e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2257
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/system')
-rw-r--r--users/glittershark/system/system/machines/yeren.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/glittershark/system/system/machines/yeren.nix b/users/glittershark/system/system/machines/yeren.nix
index 2cbf45a12f..ae697592de 100644
--- a/users/glittershark/system/system/machines/yeren.nix
+++ b/users/glittershark/system/system/machines/yeren.nix
@@ -75,6 +75,21 @@
     package = config.depot.users.glittershark.pkgs.fprintd;
   };
 
+  security.pam.loginLimits = [
+    {
+      domain = "grfn";
+      type = "soft";
+      item = "nofile";
+      value = "65535";
+    }
+    {
+      domain = "grfn";
+      type = "hard";
+      item = "nofile";
+      value = "unlimited";
+    }
+  ];
+
   security.pam.services = {
     login.fprintAuth = true;
     sudo.fprintAuth = true;