Theia: more swap

This commit is contained in:
blahai 2024-12-15 02:32:17 +02:00
parent 938cb79a0b
commit 446d0d9f49
Signed by: blahai
SSH key fingerprint: SHA256:ZfCryi+V64yG+vC1ZIIsqgvBCmA31tTi7RJ6M8CvpRc

View file

@ -20,6 +20,10 @@
kernel = {
sysctl = {
"vm.max_map_count" = 2147483642;
"vm.swappiness" = 200;
"vm.watermark_boost_factor" = 0;
"vm.watermark_scale_factor" = 125;
"vm.page-cluster" = 0;
"net.ipv4.ip_forward" = 1;
"net.ipv6.conf.all.forwarding" = 1;
};
@ -57,6 +61,11 @@
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [{
device = "/var/lib/swapfile";
size = 16 * 1024;
}];
networking = {
enableIPv6 = false; # Had to disable for now due to problems with resolving
firewall = {