Restart mbsync
This commit is contained in:
parent
6ae881acae
commit
ca68de7f7e
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ in {
|
||||||
hasImapHost = name: account: account.imap != null;
|
hasImapHost = name: account: account.imap != null;
|
||||||
in lib.mapAttrs' mkServiceWithName
|
in lib.mapAttrs' mkServiceWithName
|
||||||
(lib.filterAttrs hasImapHost config.accounts.email.accounts) // {
|
(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;
|
programs.msmtp.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue