This commit is contained in:
4DBug
2026-02-04 16:43:38 -06:00
parent d25f508b25
commit 37ff9e91ff
21 changed files with 934 additions and 0 deletions

17
new/modules/swap.nix Normal file
View File

@@ -0,0 +1,17 @@
{ config, pkgs, device, ... }:
{
boot.kernel.sysctl = {
"fs.file-max" = 524288;
};
swapDevices = [{
device = "/var/lib/swapfile";
size = 8 * 1024;
}];
zramSwap = {
enable = true;
memoryMax = 64 * 1024 * 1024 * 1024;
};
}