nixos-config/hosts/candlekeep/earlyoom.nix
Glen Goodwin 7e03c148e4 feat: add earlyoom
Dont really need this but its cool
2023-12-06 12:53:02 -05:00

11 lines
295 B
Nix

{
services.earlyoom = {
enable = true;
freeSwapThreshold = 2;
freeMemThreshold = 2;
extraArgs = [
"-g" "--avoid '^(.Hyrpland-wrapp|alacritty|zerotier-one|.waybar-wrapped)$'"
"--prefer '^(electron|libreoffice|gimp|Isolated Web Co)$'"
];
};
}