1
0
Fork 0

Restart mbsync

This commit is contained in:
Malte Brandy 2020-09-23 17:45:43 +02:00
parent 6ae881acae
commit ca68de7f7e
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -152,7 +152,11 @@ in {
hasImapHost = name: account: account.imap != null;
in lib.mapAttrs' mkServiceWithName
(lib.filterAttrs hasImapHost config.accounts.email.accounts) // {
mbsync.Service.Environment = "PATH=${pkgs.coreutils}/bin";
mbsync.Service = {
Environment = "PATH=${pkgs.coreutils}/bin";
Restart = "on-failure";
RestartSec = "30s";
};
};
programs.msmtp.enable = true;