summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-05 11:25:20 +0200
committerAlan Pearce2024-06-05 11:25:20 +0200
commitb1c969a7ef810adafd9139bdb2120ae77925cfd6 (patch)
tree668d82c40f85d364ea189b8f6793ca16a8b4ee49
parent55176b87fd5f918eb2b9d6418671a12dd3dc9186 (diff)
downloadnixfiles-b1c969a7ef810adafd9139bdb2120ae77925cfd6.tar.lz
nixfiles-b1c969a7ef810adafd9139bdb2120ae77925cfd6.tar.zst
nixfiles-b1c969a7ef810adafd9139bdb2120ae77925cfd6.zip
linde: enable compressed in-memory swap
-rw-r--r--system/linde.nix5
1 files changed, 5 insertions, 0 deletions
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;