From 078c4aebe8c332fdfd2fbe417f14cc858fe4f494 Mon Sep 17 00:00:00 2001 From: Jo Date: Wed, 17 Dec 2025 09:07:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Reduce=20swappiness=20and=20zram?= =?UTF-8?q?=20swap=20priority?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- systems/x86_64-nixos/puzzlevision/hardware.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systems/x86_64-nixos/puzzlevision/hardware.nix b/systems/x86_64-nixos/puzzlevision/hardware.nix index 69ee395..09b2d23 100644 --- a/systems/x86_64-nixos/puzzlevision/hardware.nix +++ b/systems/x86_64-nixos/puzzlevision/hardware.nix @@ -33,7 +33,7 @@ in # Increase swappiness, if ZRAM swap is enabled, # as it doesn't come with the same "speed" caveats as standard swap. kernel.sysctl = mkIf config.zramSwap.enable { - "vm.swappiness" = 140; + "vm.swappiness" = 10; }; }; @@ -46,7 +46,7 @@ in # Enable ZRAM zramSwap = { enable = true; - priority = 100; + priority = 0; }; # Disable standard swap