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; };