[General] disable zram-swap in favor of using zswap (which is made for this)

This commit is contained in:
Antoine Viallon 2025-01-27 11:08:49 +01:00
parent a1151262dd
commit 769ec1ae76
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

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