nixos-config/sets/swap.nix

11 lines
183 B
Nix

{ lib, ... }: {
zramSwap = {
enable = true;
memoryPercent = lib.mkDefault 25;
};
services.earlyoom = {
enable = true;
freeMemThreshold = lib.mkDefault 5;
};
}