linde: enable compressed in-memory swap
Alan Pearce alan@alanpearce.eu
Wed, 05 Jun 2024 11:25:20 +0200
1 files changed, 5 insertions(+), 0 deletions(-)
jump to
M system/linde.nix → system/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;