From b1c969a7ef810adafd9139bdb2120ae77925cfd6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 5 Jun 2024 11:25:20 +0200 Subject: linde: enable compressed in-memory swap --- system/linde.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system') diff --git a/system/linde.nix b/system/linde.nix index a34d5d4e..6d47d676 100644 --- a/system/linde.nix +++ b/system/linde.nix @@ -283,6 +283,11 @@ in MaxRetentionSec=1 month ''; + zramSwap = { + enable = true; + algorithm = "zstd"; + }; + boot.kernel.sysctl = let buffer_size = 16 * 1024 * 1024; -- cgit 1.4.1