feat(system): add zram swap

This commit is contained in:
Felix Schröter 2023-04-11 17:00:07 +02:00
parent 041ce07092
commit 730683518c
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 9 additions and 6 deletions
system

8
system/zram.nix Normal file
View 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;
}