From 141b3c32d87b40a2a4736b784edd4e0284779eb3 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Tue, 16 Jul 2024 18:15:22 +0100 Subject: [PATCH] gendry: use zram swap --- .../default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix index d9d7a19..652ce99 100644 --- a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix @@ -29,6 +29,13 @@ ]; }; + ## Enable ZRAM swap to help with root on tmpfs + zramSwap = { + enable = true; + memoryPercent = 200; + algorithm = "zstd"; + }; + ## Desktop custom.users.jake.password = true; custom.desktop.awesome.enable = true;