From 7580be14e671d1f133ec7c6540d727330a58f00c Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Fri, 24 Oct 2025 12:32:48 -0400 Subject: [PATCH] zswap: use default compressor lz4 isnt working and i dont know why but who cares --- modules/nixos/system/zswap.nix | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/modules/nixos/system/zswap.nix b/modules/nixos/system/zswap.nix index ef71797..0632948 100644 --- a/modules/nixos/system/zswap.nix +++ b/modules/nixos/system/zswap.nix @@ -1,18 +1,13 @@ { config, ... }: { - boot = { - # necessary for lz4 compressor - initrd.systemd.enable = true; - - kernelParams = - # zswap needs a swapfile - assert config.swapDevices != []; - [ - "zswap.enabled=1" - "zswap.compressor=lz4" - "zswap.max_pool_percent=25" - "zswap.shrinker_enabled=1" - ]; - }; + boot.kernelParams = + # zswap needs a swapfile + assert config.swapDevices != []; + [ + "zswap.enabled=1" + "zswap.compressor=zstd" + "zswap.max_pool_percent=25" + "zswap.shrinker_enabled=1" + ]; } \ No newline at end of file