diff --git a/flake.nix b/flake.nix index 966f01b..182e6dd 100644 --- a/flake.nix +++ b/flake.nix @@ -222,8 +222,8 @@ wantedBy = [ "timers.target" ]; partOf = [ "${cfg.user}_new_users.service" ]; timerConfig = { - # every hour - OnCalendar = "*-*-* *:15:00"; + # every 15 min + OnCalendar = "*-*-* *:0/15:00"; Unit = "${cfg.user}_update.service"; }; }; diff --git a/src/bin/new_users.rs b/src/bin/new_users.rs index 97fff36..6b89501 100644 --- a/src/bin/new_users.rs +++ b/src/bin/new_users.rs @@ -96,6 +96,18 @@ fn send_mail(config: &Config, record: &Record, auth: &str) -> Result Result Result Result