feat: EarlyOOM
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
filesystemType = "btrfs";
|
filesystemType = "btrfs";
|
||||||
|
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
earlyoom.enable = true;
|
||||||
|
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
impermanenceUsers = ["crumb"];
|
impermanenceUsers = ["crumb"];
|
||||||
|
|||||||
15
modules/nixos/earlyoom.nix
Normal file
15
modules/nixos/earlyoom.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user