From e20d7c71579f5554cb38161572d1d161aacdf50d Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 1 Apr 2022 00:29:24 -0400 Subject: [PATCH] refactor(core,global): earlyoom from core -> global --- modules/modules/global.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/modules/global.nix b/modules/modules/global.nix index 389ef56..faa6a17 100644 --- a/modules/modules/global.nix +++ b/modules/modules/global.nix @@ -23,8 +23,13 @@ with lib.hlissner; # Allow non-root users to allow other users to access mount point programs.fuse.userAllowOther = mkDefault true; - # Ensure certain necessary directories always exist - services.ensure.directories = [ "/mnt" ]; + services = { + # Ensure certain necessary directories always exist + ensure.directories = [ "/mnt" ]; + + # Enable Early Out of Memory service + earlyoom.enable = true; + }; # FIX: command-not-found database doesn't exist normally system.activationScripts.channels-update.text = ''