email sync services
This commit is contained in:
parent
f95dc49468
commit
6c57a16a6a
|
@ -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
|
||||
|
|
|
@ -15,5 +15,6 @@
|
|||
./update
|
||||
./polkit
|
||||
./ssh
|
||||
./mail
|
||||
];
|
||||
}
|
||||
|
|
21
modules/mail/default.nix
Normal file
21
modules/mail/default.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue