diff options
author | Alan Pearce | 2024-06-05 11:25:20 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-05 11:25:20 +0200 |
commit | b1c969a7ef810adafd9139bdb2120ae77925cfd6 (patch) | |
tree | 668d82c40f85d364ea189b8f6793ca16a8b4ee49 | |
parent | 55176b87fd5f918eb2b9d6418671a12dd3dc9186 (diff) | |
download | nixfiles-b1c969a7ef810adafd9139bdb2120ae77925cfd6.tar.lz nixfiles-b1c969a7ef810adafd9139bdb2120ae77925cfd6.tar.zst nixfiles-b1c969a7ef810adafd9139bdb2120ae77925cfd6.zip |
linde: enable compressed in-memory swap
-rw-r--r-- | system/linde.nix | 5 |
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; |