From e231697430d1a5c0eaf8c65b9a956100f55f8354 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Feb 2026 17:52:19 +0100 Subject: [PATCH] Raise inotify file watchers --- install/config/all.sh | 1 + install/config/increase-file-watchers.sh | 3 +++ migrations/1771606080.sh | 3 +++ 3 files changed, 7 insertions(+) create mode 100755 install/config/increase-file-watchers.sh create mode 100755 migrations/1771606080.sh diff --git a/install/config/all.sh b/install/config/all.sh index 9a7be526..ebd0e43f 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -7,6 +7,7 @@ run_logged $OMARCHY_INSTALL/config/timezones.sh run_logged $OMARCHY_INSTALL/config/increase-sudo-tries.sh run_logged $OMARCHY_INSTALL/config/increase-lockout-limit.sh run_logged $OMARCHY_INSTALL/config/ssh-flakiness.sh +run_logged $OMARCHY_INSTALL/config/increase-file-watchers.sh run_logged $OMARCHY_INSTALL/config/detect-keyboard-layout.sh run_logged $OMARCHY_INSTALL/config/xcompose.sh run_logged $OMARCHY_INSTALL/config/mise-work.sh diff --git a/install/config/increase-file-watchers.sh b/install/config/increase-file-watchers.sh new file mode 100755 index 00000000..a6be761a --- /dev/null +++ b/install/config/increase-file-watchers.sh @@ -0,0 +1,3 @@ +# Increase inotify file watchers for VS Code, webpack, and other dev tools (default 8192 is too low) +echo "fs.inotify.max_user_watches=524288" | sudo tee /etc/sysctl.d/90-omarchy-file-watchers.conf >/dev/null +sudo sysctl --system >/dev/null 2>&1 diff --git a/migrations/1771606080.sh b/migrations/1771606080.sh new file mode 100755 index 00000000..da064f38 --- /dev/null +++ b/migrations/1771606080.sh @@ -0,0 +1,3 @@ +echo "Increase inotify file watchers for dev tools" + +bash $OMARCHY_PATH/install/config/increase-file-watchers.sh