Common: use zram as swap

This commit is contained in:
Toast 2023-09-21 11:38:51 +02:00
parent 63ed34e568
commit 31501f509c

View file

@ -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";