From afc2aec6b3257ef665891f50b3630e78ffb48ea8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 30 Jul 2017 19:28:06 +0200 Subject: scoping --- custom/unit-status-mail.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/unit-status-mail.nix b/custom/unit-status-mail.nix index 355d1cf7..c1947063 100644 --- a/custom/unit-status-mail.nix +++ b/custom/unit-status-mail.nix @@ -36,7 +36,7 @@ in { scriptArgs = "%I \"Hostname: %H\" \"Machine-ID: %m\" \"Boot-ID: %b\""; script = '' #!${pkgs.stdenv.shell} - MAILTO="${recipient}" + MAILTO="${cfg.recipient}" MAILFROM="unit-status-mailer" UNIT=$1 -- cgit v1.2.3