Improve Syncthing performance
This commit is contained in:
@@ -94,8 +94,12 @@ with pkgs;
|
||||
# Keep logs for a week
|
||||
services.journald.extraConfig = "MaxRetentionSec=1week";
|
||||
|
||||
# Increase inotify limits
|
||||
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
|
||||
# Increase inotify limits and maximum buffer size
|
||||
boot.kernel.sysctl = {
|
||||
"fs.inotify.max_user_watches" = 204800;
|
||||
"net.core.rmem_max" = 2500000;
|
||||
"net.core.wmem_max" = 2500000;
|
||||
};
|
||||
|
||||
# MOTD message
|
||||
programs.fish.interactiveShellInit = "${./scripts/motd.sh}";
|
||||
|
||||
Reference in New Issue
Block a user