host: Enable earlyoom

This commit is contained in:
2021-09-20 11:40:49 +02:00
parent deb88dafa7
commit c147db7c59
3 changed files with 25 additions and 5 deletions

View File

@@ -175,6 +175,12 @@ let
# For debugging.
# TODO: Lock to known IPs and keys
sshd.enable = true;
# Prevent unexpected OOM situations with heavy swapping
earlyoom = {
enable = true;
enableNotifications = true;
};
};
# Don't wait for a network connection