diff --git a/hosts/theia/configuration.nix b/hosts/theia/configuration.nix index be4a0d3..ceec1fd 100644 --- a/hosts/theia/configuration.nix +++ b/hosts/theia/configuration.nix @@ -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 = {