From c3aeed28fb336274a593e84f0f9d655f7a9ed7ea Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 3 Mar 2023 21:27:48 +0900 Subject: feat(home/communication): fix mbsync-oneshot --- home/profiles/communication/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'home') diff --git a/home/profiles/communication/default.nix b/home/profiles/communication/default.nix index 82664b3..3750013 100644 --- a/home/profiles/communication/default.nix +++ b/home/profiles/communication/default.nix @@ -44,9 +44,6 @@ in create = "maildir"; remove = "none"; expunge = "both"; - - extraConfig.account.SSLType = "IMAPS"; - extraConfig.account.SSLVersions = "TLSv1.2"; }; msmtp.enable = true; @@ -266,9 +263,14 @@ in }; Service = { Type = "oneshot"; - ExecStart = "${mbsyncCmd} --all"; + ExecStart = "${mbsyncCmd} -Va"; RemainAfterExit = true; TimeoutStartSec = "5min"; + Environment = "PATH=${lib.makeBinPath [ + # passage dependencies + pkgs.util-linux + pkgs.coreutils + ]}"; }; Install.WantedBy = [ "default.target" ]; }; -- cgit 1.4.1