Configure zram swap with zstd and 50% memory limit

This commit is contained in:
ashisgreat22 2026-03-19 00:22:48 +01:00
parent f646c091cc
commit b6abc4a1cf

View file

@ -7,7 +7,11 @@
services.logrotate.checkConfig = false; services.logrotate.checkConfig = false;
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
zramSwap.enable = true; zramSwap = {
enable = true;
memoryPercent = 50;
algorithm = "zstd";
};
networking.hostName = "nixos"; networking.hostName = "nixos";
networking.domain = ""; networking.domain = "";