Enable neomutt and mbsync systemd service

This commit is contained in:
Evie Litherland-Smith 2023-12-26 07:24:56 +00:00
parent cdf23caa90
commit a4ed54f1b3

View file

@ -3,6 +3,7 @@
{
home.packages = with pkgs; [ davmail ];
programs = {
neomutt.enable = true;
mu.enable = true;
msmtp.enable = true;
mbsync = {
@ -56,6 +57,7 @@
};
};
mu.enable = lib.mkDefault accountEnabled;
neomutt.enable = lib.mkDefault accountEnabled;
};
icloud = let accountEnabled = true;
in rec {
@ -78,6 +80,7 @@
};
msmtp.enable = lib.mkDefault accountEnabled;
mu.enable = lib.mkDefault accountEnabled;
neomutt.enable = lib.mkDefault accountEnabled;
};
outlook = let
host = "127.0.0.1";
@ -125,9 +128,14 @@
};
};
mu.enable = lib.mkDefault accountEnabled;
neomutt.enable = lib.mkDefault accountEnabled;
};
};
};
services.mbsync = {
enable = true;
frequency = "*:0/5";
};
systemd.user.services = let emailAccounts = config.accounts.email.accounts;
in {
protonmail-bridge = lib.mkIf emailAccounts.proton.mbsync.enable {