swapiness and enable both mc ports

This commit is contained in:
Kopatz
2025-09-30 15:58:12 +02:00
parent 1882573a5c
commit af28f7b254
3 changed files with 10 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ in {
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
networking.firewall = { networking.firewall = {
enable = true; enable = true;
allowedTCPPorts = [ 25565 53317 ]; # localsend allowedTCPPorts = [ 53317 ]; # localsend
allowedUDPPorts = [ 1194 53317 ]; # openvpn, localsend allowedUDPPorts = [ 1194 53317 ]; # openvpn, localsend
allowedTCPPortRanges = [{ allowedTCPPortRanges = [{
from = 1714; from = 1714;

View File

@@ -2,4 +2,10 @@
zramSwap = { zramSwap = {
enable = true; enable = true;
}; };
boot.kernel.sysctl = {
"vm.swappiness" = 180;
"vm.page-cluster" = 0;
#"vm.watermark_boost_factor" = 0;
#"vm.watermark_scale_factor" = 125;
};
} }

View File

@@ -68,6 +68,8 @@
prefixLength = 24; prefixLength = 24;
}]; }];
}; };
firewall.allowedTCPPorts = [ 25565 25566 ]; # localsend
}; };
security.pki.certificates = [ security.pki.certificates = [