aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-08-22 16:09:14 +0200
committerGitHub <noreply@github.com>2020-08-22 16:09:14 +0200
commitf8e6745ad30fa35a2d95096fd955ef73fcd40594 (patch)
tree6cfe71efce800d75c3d8b4f5924d41ad2f9db7e8 /nixos
parent34e4b4ffb5b8375a2d3e00dd26d8a0b5720ef6da (diff)
parentea37c9caa1a07d1cc1d4fa915959e14d77594238 (diff)
Merge pull request #82817 from pacien/smartd-fix-hostname-notifications
smartmontools: fix missing hostname in notifications
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/monitoring/smartd.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/nixos/modules/services/monitoring/smartd.nix b/nixos/modules/services/monitoring/smartd.nix
index a3612be3cc23..c72b4abfcdce 100644
--- a/nixos/modules/services/monitoring/smartd.nix
+++ b/nixos/modules/services/monitoring/smartd.nix
@@ -20,7 +20,7 @@ let
${pkgs.coreutils}/bin/cat << EOF
From: smartd on ${host} <${nm.sender}>
To: undisclosed-recipients:;
- Subject: SMART error on $SMARTD_DEVICESTRING: $SMARTD_FAILTYPE
+ Subject: $SMARTD_SUBJECT
$SMARTD_FULLMESSAGE
EOF
@@ -239,11 +239,7 @@ in
systemd.services.smartd = {
description = "S.M.A.R.T. Daemon";
-
wantedBy = [ "multi-user.target" ];
-
- path = [ pkgs.nettools ]; # for hostname and dnsdomanname calls in smartd
-
serviceConfig.ExecStart = "${pkgs.smartmontools}/sbin/smartd ${lib.concatStringsSep " " cfg.extraOptions} --no-fork --configfile=${smartdConf}";
};