From d700d4b8e3e585c37b105409753924682a6fe6da Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 27 May 2025 13:55:37 +0200 Subject: [PATCH] feat(kernel): adjust inotify limits for JetBrains IDEs - Removed inotify sysctl settings from hardware configuration. - Added updated inotify limits under GUI services for JetBrains IDEs. This ensures better compatibility and performance for these tools. Signed-off-by: Harald Hoyer --- modules/nixos/services/gui/default.nix | 9 +++++++-- systems/x86_64-linux/x1/hardware-configuration.nix | 5 ----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/nixos/services/gui/default.nix b/modules/nixos/services/gui/default.nix index 0e9e150..9f01c38 100644 --- a/modules/nixos/services/gui/default.nix +++ b/modules/nixos/services/gui/default.nix @@ -1,5 +1,4 @@ -{ options -, config +{ config , lib , pkgs , ... @@ -198,6 +197,12 @@ in }; }; + # jetbrains IDE + boot.kernel.sysctl = { + "fs.inotify.max_user_instances" = 16384; + "fs.inotify.max_user_watches" = 1048576; + }; + # remote desktop networking.firewall.allowedTCPPorts = [ 3389 ]; }; diff --git a/systems/x86_64-linux/x1/hardware-configuration.nix b/systems/x86_64-linux/x1/hardware-configuration.nix index 1018c0d..2b18eae 100644 --- a/systems/x86_64-linux/x1/hardware-configuration.nix +++ b/systems/x86_64-linux/x1/hardware-configuration.nix @@ -32,11 +32,6 @@ "video=efifb:nobgrt" ]; - kernel.sysctl = { - "fs.inotify.max_user_instances" = 8192; - "fs.inotify.max_user_watches" = 524288; - }; - extraModulePackages = [ ]; initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502" = {