zswap: use default compressor
lz4 isnt working and i dont know why but who cares
This commit is contained in:
parent
1a0a82a7d5
commit
7580be14e6
1 changed files with 9 additions and 14 deletions
|
|
@ -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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue