swapiness and enable both mc ports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -2,4 +2,10 @@
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
};
|
||||
boot.kernel.sysctl = {
|
||||
"vm.swappiness" = 180;
|
||||
"vm.page-cluster" = 0;
|
||||
#"vm.watermark_boost_factor" = 0;
|
||||
#"vm.watermark_scale_factor" = 125;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -68,6 +68,8 @@
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
|
||||
firewall.allowedTCPPorts = [ 25565 25566 ]; # localsend
|
||||
};
|
||||
|
||||
security.pki.certificates = [
|
||||
|
||||
Reference in New Issue
Block a user