summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ymir.nix')
-rw-r--r--ymir.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/ymir.nix b/ymir.nix
index 76e07367..ce5f42d1 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -905,7 +905,6 @@ in rec {
905 Type = "oneshot"; 905 Type = "oneshot";
906 }; 906 };
907 scriptArgs = "%I %H %m %b"; 907 scriptArgs = "%I %H %m %b";
908 path = [ config.security.wrapperDir ]; # For sendmail
909 script = '' 908 script = ''
910 #!${pkgs.stdenv.shell} 909 #!${pkgs.stdenv.shell}
911 MAILTO="root" 910 MAILTO="root"
@@ -919,7 +918,7 @@ in rec {
919 918
920 UNITSTATUS=$(systemctl status $UNIT) 919 UNITSTATUS=$(systemctl status $UNIT)
921 920
922 sendmail $MAILTO <<EOF 921 ${config.security.wrapperDir}/sendmail $MAILTO <<EOF
923 From:$MAILFROM 922 From:$MAILFROM
924 To:$MAILTO 923 To:$MAILTO
925 Subject:Status mail for unit: $UNIT 924 Subject:Status mail for unit: $UNIT