From b4981eb8e18c5d96e59b94b8b8acb51509ec7ed6 Mon Sep 17 00:00:00 2001 From: obadz Date: Tue, 5 Oct 2021 10:17:09 +0100 Subject: [PATCH] earlyoom module: log stderr to journald (Default is to do the same as stdout which is > /dev/null) --- nixos/modules/services/system/earlyoom.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/system/earlyoom.nix b/nixos/modules/services/system/earlyoom.nix index e29bdbe264cc..452efc736439 100644 --- a/nixos/modules/services/system/earlyoom.nix +++ b/nixos/modules/services/system/earlyoom.nix @@ -106,6 +106,7 @@ in path = optional ecfg.enableNotifications pkgs.dbus; serviceConfig = { StandardOutput = "null"; + StandardError = "journal"; ExecStart = '' ${pkgs.earlyoom}/bin/earlyoom \ -m ${toString ecfg.freeMemThreshold} \