···11+{
22+ boot.initrd.systemd.enable = true;
33+ boot.kernelParams = [
44+ "zswap.enabled=1" # enables zswap
55+ "zswap.compressor=lz4" # compression algorithm
66+ "zswap.max_pool_percent=13" # maximum percentage of RAM that zswap is allowed to use
77+ "zswap.shrinker_enabled=1" # whether to shrink the pool proactively on high memory pressure
88+ ];
99+}