From a52aed5778a5a4cb13aae003d3bf5b927a74c7dc 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;