email sync services

This commit is contained in:
joygnu 2024-08-22 07:57:54 +02:00
parent 0fa0456f7e
commit 7e32d7f9bb
3 changed files with 22 additions and 12 deletions

View file

@ -1,16 +1,4 @@
{pkgs, ...}: {
# programs.neomutt = {
# enable = true;
# sidebar.enable = true;
# vimKeys = true;
# };
# programs.mbsync = {
# enable = true;
# };
# programs.msmtp = {
# enable = true;
# };
home.packages = with pkgs; [
mutt-wizard
neomutt

View file

@ -15,5 +15,6 @@
./update
./polkit
./ssh
./mail
];
}

21
modules/mail/default.nix Normal file
View file

@ -0,0 +1,21 @@
{...}:{
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";
};
}