diff --git a/modules/services/monitoring/smartd.nix b/modules/services/monitoring/smartd.nix index 5a94caefd3b..a4c24c794d6 100644 --- a/modules/services/monitoring/smartd.nix +++ b/modules/services/monitoring/smartd.nix @@ -7,7 +7,7 @@ let cfg = config.services.smartd; smartdMail = pkgs.writeScript "smartdmail.sh" '' - #! /bin/sh + #! ${pkgs.stdenv.shell} TMPNAM=/tmp/smartd-message.$$.tmp if test -n "$SMARTD_ADDRESS"; then echo >"$TMPNAM" "From: smartd "