feat(system): make zram swap options overridable
This commit is contained in:
parent
431aeb8c06
commit
3bef9b9f4e
|
@ -1,8 +1,8 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
with lib; {
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = mkDefault true;
|
||||||
zramSwap.memoryPercent = 100;
|
zramSwap.memoryPercent = mkDefault 100;
|
||||||
zramSwap.memoryMax = 16 * 1024 * 1024 * 1024;
|
zramSwap.memoryMax = mkDefault (16 * 1024 * 1024 * 1024);
|
||||||
boot.kernel.sysctl."vm.swappiness" = 100;
|
boot.kernel.sysctl."vm.swappiness" = mkDefault 100;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue