{ config, lib, pkgs, ... }: with lib; let cfg = config.systemd.emailNotify; sendmail = pkgs.writeScript "sendmail" '' #!${pkgs.runtimeShell} ${pkgs.system-sendmail}/bin/sendmail -t <