Common: use zram as swap
This commit is contained in:
parent
63ed34e568
commit
31501f509c
1 changed files with 11 additions and 0 deletions
|
|
@ -18,6 +18,17 @@
|
||||||
cleanOnBoot = !config.boot.tmp.useTmpfs;
|
cleanOnBoot = !config.boot.tmp.useTmpfs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set up zram
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
priority = 100;
|
||||||
|
memoryPercent = 60;
|
||||||
|
# zstd my beloved <3
|
||||||
|
algorithm = "zstd";
|
||||||
|
};
|
||||||
|
# zswap with zram is not a good idea
|
||||||
|
boot.kernelParams = [ "zswap.enabled=0" ];
|
||||||
|
|
||||||
# Set up keyboard layout
|
# Set up keyboard layout
|
||||||
services.xserver.layout = "es";
|
services.xserver.layout = "es";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue