integrate htpc and associated configuration

This commit is contained in:
k3t
2026-06-01 20:33:57 -06:00
parent 8209672944
commit db7a8a3f6e
21 changed files with 289 additions and 33 deletions
+18
View File
@@ -0,0 +1,18 @@
{
# 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
};
}