Files
nixconf/modules/sys/sysctl.nix
T

18 lines
747 B
Nix

{
# Transparent Hugepages for better memory performance
boot.kernel.sysctl = {
"vm.max_map_count" = 1048576; # For some games that need it
"vm.swappiness" = 200; # Reduce swapping
# BBR congestion control
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
"kernel.sysrq" = 1; # Enable SysRq for emergency recovery
# CachyOS performance tweaks
"kernel.nmi_watchdog" = 0; # Disable NMI watchdog (reduces overhead)
"vm.vfs_cache_pressure" = 50; # Better file cache retention
"vm.dirty_ratio" = 10; # Faster writes to disk
"vm.dirty_background_ratio" = 5; # Background write threshold
"kernel.sched_autogroup_enabled" = 0; # Better CPU scheduling for gaming
};
}