nix/modules/mail/default.nix
2024-08-22 07:57:54 +02:00

22 lines
472 B
Nix

{...}:{
systemd.services.email-sync = {
description = "Service to sync emails";
serviceConfig = {
ExecStart = "mw -Y";
User = "joy";
Group = "users";
};
wantedBy = [ "multi-user.target" ];
};
systemd.timers.email-sync = {
description = "Timer to run email sync every 10 minutes";
timerConfig = {
OnBootSec = "1min";
OnUnitActiveSec = "10min";
};
wants = [ "email-sync.service" ];
unit = "email-sync.service";
};
}