all repos — nixfiles @ b1c969a7ef810adafd9139bdb2120ae77925cfd6

System and user configuration, managed by nix and home-manager

linde: enable compressed in-memory swap
Alan Pearce alan@alanpearce.eu
Wed, 05 Jun 2024 11:25:20 +0200
commit

b1c969a7ef810adafd9139bdb2120ae77925cfd6

parent

55176b87fd5f918eb2b9d6418671a12dd3dc9186

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M system/linde.nixsystem/linde.nix
@@ -283,6 +283,11 @@ services.journald.extraConfig = ''     MaxRetentionSec=1 month
   '';
 
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+  };
+
   boot.kernel.sysctl =
     let
       buffer_size = 16 * 1024 * 1024;