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 # zswap needs a swapfile
initrd.systemd.enable = true; assert config.swapDevices != [];
[
kernelParams = "zswap.enabled=1"
# zswap needs a swapfile "zswap.compressor=zstd"
assert config.swapDevices != []; "zswap.max_pool_percent=25"
[ "zswap.shrinker_enabled=1"
"zswap.enabled=1" ];
"zswap.compressor=lz4"
"zswap.max_pool_percent=25"
"zswap.shrinker_enabled=1"
];
};
} }