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;
networking.firewall = {
enable = true;
allowedTCPPorts = [ 25565 53317 ]; # localsend
allowedTCPPorts = [ 53317 ]; # localsend
allowedUDPPorts = [ 1194 53317 ]; # openvpn, localsend
allowedTCPPortRanges = [{
from = 1714;

View File

@@ -1,5 +1,11 @@
{ pkgs, lib, config, ...}: {
{ pkgs, lib, config, ... }: {
zramSwap = {
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;
}];
};
firewall.allowedTCPPorts = [ 25565 25566 ]; # localsend
};
security.pki.certificates = [