From 42b9de28b8e5d017e37577e0507714226f5acebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 30 Jul 2022 16:31:50 +0200 Subject: [PATCH] :broom: remove mbsync --- modules/config/email.nix | 50 +--------------------------------------- 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/modules/config/email.nix b/modules/config/email.nix index 3c59dfb..0801a75 100644 --- a/modules/config/email.nix +++ b/modules/config/email.nix @@ -44,55 +44,7 @@ in }; # Email Applications - home-manager.users.moritz = { - home.packages = with pkgs; [ thunderbird ]; - programs = { - msmtp.enable = true; - mbsync.enable = true; - }; - services.mbsync = { - enable = true; - frequency = "*:0/15"; - preExec = "${pkgs.isync}/bin/mbsync -Ha"; - postExec = "${pkgs.mu}/bin/mu index -m ${mailDirectory}"; - }; - accounts.email = { - maildirBasePath = mailDirectory; - accounts.default = { - address = email; - userName = email; - flavor = "plain"; - primary = true; - passwordCommand = "${pkgs.coreutils}/bin/cat /run/agenix/email"; - mbsync = { - enable = true; - create = "both"; - expunge = "both"; - patterns = [ "*" ]; - }; - realName = name; - msmtp.enable = true; - imap = { - host = "127.0.0.1"; - port = 1143; - tls = { - enable = true; - useStartTls = true; - certificatesFile = "/home/moritz/.config/protonmail/bridge/cert.pem"; - }; - }; - smtp = { - host = "127.0.0.1"; - port = 1025; - tls = { - enable = true; - useStartTls = true; - certificatesFile = "/home/moritz/.config/protonmail/bridge/cert.pem"; - }; - }; - }; - }; - }; + home-manager.users.moritz.home.packages = with pkgs; [ thunderbird ]; networking.firewall.allowedTCPPorts = [ 33728 1025 1143 ]; }; }