From 769ec1ae7628b968b9b4c4ed6cfcb8d0afd89d4c Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Mon, 27 Jan 2025 11:08:49 +0100 Subject: [PATCH] [General] disable zram-swap in favor of using zswap (which is made for this) --- general.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/general.nix b/general.nix index 408afd3..57b3b12 100644 --- a/general.nix +++ b/general.nix @@ -117,18 +117,14 @@ in aviallon.boot.cmdline = mkIf cfg.unsafeOptimizations { mitigations = "off"; + "zswap.enabled" = "Y"; + "zswap.shrinker_enabled" = "Y"; + "zswap.compressor" = "zstd"; + "zswap.pool" = "zsmalloc"; }; powerManagement.cpuFreqGovernor = mkDefault "schedutil"; - # zram is so usefull, we should always have it enabled. - zramSwap = { - enable = true; - priority = 10000; - memoryPercent = 100; - algorithm = "zstd"; - }; - environment.noXlibs = mkIf (cfg.minimal && (!desktopCfg.enable)) true; };