feat(system): add zram swap
This commit is contained in:
parent
041ce07092
commit
730683518c
3 changed files with 9 additions and 6 deletions
system
8
system/zram.nix
Normal file
8
system/zram.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
zramSwap.enable = true;
|
||||
zramSwap.memoryPercent = 100;
|
||||
zramSwap.memoryMax = 16 * 1024 * 1024 * 1024;
|
||||
boot.kernel.sysctl."vm.swappiness" = 100;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue