feat(memory): declare 'memory' module
check / lint (push) Successful in 15s

This commit is contained in:
hektor committed 2026-10-24 13:22:38 +02:00
1 parent f3876cdf87
commit bb2f0dcd29
6 files changed
+44 -9

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
{ config, lib, ... }:
{
config = lib.mkIf config.memory.zram.enable {
zramSwap.enable = true;
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 180;
"vm.page-cluster" = lib.mkDefault 0;
};
};
}