smartmontools: use standard subject in notification emails
This makes the notification script use the subject generated by smartmontools
itself both for consistency with other distros and to include the hostname.
commitea37c9caa1a07d1cc1d4fa915959e14d77594238
authorpacien <pacien.trangirard@pacien.net>
dateSun 16 Aug 2020, 20:48 (6 years ago)
parentf1922cd
nixos/modules/services/monitoring/smartd.nix+1−1
@@ -20,7 +20,7 @@ let
2020 ${pkgs.coreutils}/bin/cat << EOF
2121 From: smartd on ${host} <${nm.sender}>
2222 To: undisclosed-recipients:;
23− Subject: SMART error on $SMARTD_DEVICESTRING: $SMARTD_FAILTYPE
23+ Subject: $SMARTD_SUBJECT
2424
2525 $SMARTD_FULLMESSAGE
2626 EOF