From f4f6c66098d93f89af2f2f8a0318e23ec63cc232 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 17 Apr 2024 23:04:04 +0100 Subject: [PATCH] jorah: enable zramSwap --- hosts/jorah.cx.ts.hillion.co.uk/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/jorah.cx.ts.hillion.co.uk/default.nix b/hosts/jorah.cx.ts.hillion.co.uk/default.nix index 0138d4b..7aa55a0 100644 --- a/hosts/jorah.cx.ts.hillion.co.uk/default.nix +++ b/hosts/jorah.cx.ts.hillion.co.uk/default.nix @@ -37,6 +37,13 @@ daemonNiceLevel = 19; }; + ## Enable ZRAM to help with root on tmpfs + zramSwap = { + enable = true; + memoryPercent = 200; + algorithm = "zstd"; + }; + ## Filesystems services.btrfs.autoScrub = { enable = true;