From c0cdb3e29d626b4ab311f5a0f1057bdf466e935e Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sat, 15 Jun 2019 14:37:58 +0200 Subject: [PATCH] =?UTF-8?q?envoi=20mail=20apr=C3=A8s=20backup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- systems/LoutreOS/services.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index ebef955..914b5bc 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -23,15 +23,21 @@ let !AUTH_OK !API ''; + sendMail = to: subject: message: pkgs.writeShellScriptBin "mail.sh" '' + ${pkgs.system-sendmail}/bin/sendmail ${to} <