summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-07-30 18:29:39 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-07-30 18:29:39 +0200
commit7af53db79f7f7427463a360b0473cbdfe468d93b (patch)
tree50bc81f60d2331c24565a65d73a2889aa7d7336b
parentb7cf1e6b93b961ef0b367cea0e227cefba667eb4 (diff)
downloadnixos-7af53db79f7f7427463a360b0473cbdfe468d93b.tar
nixos-7af53db79f7f7427463a360b0473cbdfe468d93b.tar.gz
nixos-7af53db79f7f7427463a360b0473cbdfe468d93b.tar.bz2
nixos-7af53db79f7f7427463a360b0473cbdfe468d93b.tar.xz
nixos-7af53db79f7f7427463a360b0473cbdfe468d93b.zip
path is weird.
-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