From c68361bf7140424e50608b490fb8775516ea9a24 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 30 Jul 2017 19:27:36 +0200 Subject: Test --- custom/unit-status-mail.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom/unit-status-mail.nix b/custom/unit-status-mail.nix index e9007d55..355d1cf7 100644 --- a/custom/unit-status-mail.nix +++ b/custom/unit-status-mail.nix @@ -28,7 +28,7 @@ in { }; }; - config = mkIf (cfg.onFailure != []) ({ + config = mkIf (cfg.onFailure != []) { systemd.services."unit-status-mail@" = { serviceConfig = { Type = "oneshot"; @@ -36,7 +36,7 @@ in { scriptArgs = "%I \"Hostname: %H\" \"Machine-ID: %m\" \"Boot-ID: %b\""; script = '' #!${pkgs.stdenv.shell} - MAILTO="root" + MAILTO="${recipient}" MAILFROM="unit-status-mailer" UNIT=$1 @@ -59,5 +59,5 @@ in { EOF ''; }; - } // systemdCfg); + }; } -- cgit v1.2.3