zswap: use default compressor

lz4 isnt working and i dont know why but who cares
This commit is contained in:
wo2wz 2025-10-24 12:32:48 -04:00
parent 1a0a82a7d5
commit 7580be14e6

View file

@ -1,18 +1,13 @@
{ config, ... }: { config, ... }:
{ {
boot = { boot.kernelParams =
# necessary for lz4 compressor
initrd.systemd.enable = true;
kernelParams =
# zswap needs a swapfile # zswap needs a swapfile
assert config.swapDevices != []; assert config.swapDevices != [];
[ [
"zswap.enabled=1" "zswap.enabled=1"
"zswap.compressor=lz4" "zswap.compressor=zstd"
"zswap.max_pool_percent=25" "zswap.max_pool_percent=25"
"zswap.shrinker_enabled=1" "zswap.shrinker_enabled=1"
]; ];
};
} }