{ config, lib, pkgs, ... }: with lib; # TODO replace with more secure service, e.g. matrix-sendmail (matrix-commander) # needs to support queueing # flake: https://github.com/emmanuelrosa/erosanix/blob/master/modules/matrix-sendmail.nix # call `matrix-commander --login` with credentials on service start let cfg = config.systemd.notify; sendmail = pkgs.writeScript "sendmail" '' #!${pkgs.runtimeShell} ${pkgs.system-sendmail}/bin/sendmail -t <