syncthing: fix conflicting definition of fs.inotify.max_user_watches

This commit is contained in:
DavHau
2024-04-02 17:55:49 +07:00
parent 393d171709
commit 1f9e74574b

View File

@@ -65,7 +65,9 @@
];
# Activates inotify compatibility on syncthing
boot.kernel.sysctl."fs.inotify.max_user_watches" = lib.mkDefault 524288;
# use mkOverride 900 here as it otherwise would collide with the default of the
# upstream nixos xserver.nix
boot.kernel.sysctl."fs.inotify.max_user_watches" = lib.mkOverride 900 524288;
services.syncthing = {
enable = true;