From 839b82dae43324782166b16b624e34a8c7fe4104 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 13 Feb 2025 20:41:21 +0100 Subject: Use zram for bismuth too (not that it needs it :3) Signed-off-by: Mel --- machines/bismuth/devices.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'machines/bismuth/devices.nix') diff --git a/machines/bismuth/devices.nix b/machines/bismuth/devices.nix index ff28761..cf17a89 100644 --- a/machines/bismuth/devices.nix +++ b/machines/bismuth/devices.nix @@ -21,11 +21,14 @@ ]; }; - # swap - swapDevices = [{ - device = "/var/swapfile"; - size = 8 * 1024; - }]; + # testing with replacing swap partitions and files + # and files in lieu of zram. + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 25; # 50% would just be too big for bismuth. + }; # internet networking.networkmanager.enable = true; -- cgit 1.4.1