feat: EarlyOOM

This commit is contained in:
Madeleine Sydney
2025-05-06 11:35:47 -06:00
parent b9566173b8
commit 2380b50fc7
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.earlyoom;
in {
options.sydnix.earlyoom = {
enable = lib.mkEnableOption "EarlyOOM";
};
config = lib.mkIf cfg.enable {
services.earlyoom = {
enable = true;
enableNotifications = true;
};
};
}