[djamba] added swap and zramSwap

This commit is contained in:
2026-03-18 15:16:44 +03:00
parent 602ff1e9ea
commit c6b918bcf1

View File

@@ -20,6 +20,19 @@
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
swapDevices = [{
device = "/var/lib/swapfile";
size = 32*1024; # 32 GiB
options = [ "discard" ];
}];
boot.kernel.sysctl = {
"vm.swappiness" = 20;
};
zramSwap = {
enable = true;
memoryMax = 6 * 1024 * 1024 * 1024;
};
networking.hostName = "djamba"; # Define your hostname.
# Enable networking