diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 5f49e17..1a0bbc7 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -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; diff --git a/modules/misc/zram.nix b/modules/misc/zram.nix index 9e040a2..6b8c2b3 100644 --- a/modules/misc/zram.nix +++ b/modules/misc/zram.nix @@ -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; + }; } diff --git a/systems/amd-server/configuration.nix b/systems/amd-server/configuration.nix index 334a028..b2040e4 100644 --- a/systems/amd-server/configuration.nix +++ b/systems/amd-server/configuration.nix @@ -68,6 +68,8 @@ prefixLength = 24; }]; }; + + firewall.allowedTCPPorts = [ 25565 25566 ]; # localsend }; security.pki.certificates = [