From 7eb7f6a97fc911098594323346ac4a665803a04a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 3 Dec 2024 09:32:29 -0500 Subject: [PATCH] rustboro: use lz4 for zram, limit to 50% --- hosts/rustboro/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/rustboro/default.nix b/hosts/rustboro/default.nix index aea2fe95..dc3498c8 100644 --- a/hosts/rustboro/default.nix +++ b/hosts/rustboro/default.nix @@ -38,7 +38,11 @@ environment.variables.GDK_SCALE = "1.25"; networking.hostName = "rustboro"; system.stateVersion = "24.05"; - zramSwap.memoryPercent = 100; + + zramSwap = { + algorithm = "lz4"; + memoryPercent = 50; + }; ar = { apps.firefox.enable = true;