add zram swap module

This commit is contained in:
Sangmin Kim 2026-05-19 14:41:29 +09:00
parent ab2e8d05fd
commit ab2d4251d1
2 changed files with 10 additions and 0 deletions

9
modules/swap.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 50;
};
}