nixos-config/sets/swap.nix

12 lines
183 B
Nix
Raw Permalink Normal View History

2024-03-02 03:13:17 +00:00
{ lib, ... }:
{
2023-11-18 21:59:14 +00:00
zramSwap = {
enable = true;
memoryPercent = lib.mkDefault 25;
};
services.earlyoom = {
enable = true;
freeMemThreshold = lib.mkDefault 5;
};
}