From af28f7b2548a6b7f51a489e138ba73fdc80c66b2 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Tue, 30 Sep 2025 15:58:12 +0200 Subject: [PATCH] swapiness and enable both mc ports --- modules/graphical/shared.nix | 2 +- modules/misc/zram.nix | 8 +++++++- systems/amd-server/configuration.nix | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) 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 = [