push
This commit is contained in:
17
new/modules/swap.nix
Normal file
17
new/modules/swap.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user