From cea5fae7ea254ecbaa84254118a067a268caa2c4 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner <contact@ingolf-wagner.de> Date: Sat, 18 Jan 2025 22:02:14 +1300 Subject: [PATCH] :sparkles: try to fix paperless-ngx build --- machines/orbi/hardware-configuration/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/machines/orbi/hardware-configuration/default.nix b/machines/orbi/hardware-configuration/default.nix index 1be7113..05857e1 100644 --- a/machines/orbi/hardware-configuration/default.nix +++ b/machines/orbi/hardware-configuration/default.nix @@ -38,4 +38,13 @@ autoScrub.enable = true; }; + # Because of https://github.com/NixOS/nixpkgs/issues/361006#issuecomment-2598059564 + # The default max inotify watches is 8192. + # Nowadays most apps require a good number of inotify watches, + # the value below is used by default on several other distros. + boot.kernel.sysctl = { + "fs.inotify.max_user_instances" = lib.mkDefault 524288; + "fs.inotify.max_user_watches" = lib.mkDefault 524288; + }; + }