Enable neomutt and mbsync systemd service
This commit is contained in:
parent
cdf23caa90
commit
a4ed54f1b3
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ davmail ];
|
home.packages = with pkgs; [ davmail ];
|
||||||
programs = {
|
programs = {
|
||||||
|
neomutt.enable = true;
|
||||||
mu.enable = true;
|
mu.enable = true;
|
||||||
msmtp.enable = true;
|
msmtp.enable = true;
|
||||||
mbsync = {
|
mbsync = {
|
||||||
|
@ -56,6 +57,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mu.enable = lib.mkDefault accountEnabled;
|
mu.enable = lib.mkDefault accountEnabled;
|
||||||
|
neomutt.enable = lib.mkDefault accountEnabled;
|
||||||
};
|
};
|
||||||
icloud = let accountEnabled = true;
|
icloud = let accountEnabled = true;
|
||||||
in rec {
|
in rec {
|
||||||
|
@ -78,6 +80,7 @@
|
||||||
};
|
};
|
||||||
msmtp.enable = lib.mkDefault accountEnabled;
|
msmtp.enable = lib.mkDefault accountEnabled;
|
||||||
mu.enable = lib.mkDefault accountEnabled;
|
mu.enable = lib.mkDefault accountEnabled;
|
||||||
|
neomutt.enable = lib.mkDefault accountEnabled;
|
||||||
};
|
};
|
||||||
outlook = let
|
outlook = let
|
||||||
host = "127.0.0.1";
|
host = "127.0.0.1";
|
||||||
|
@ -125,9 +128,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mu.enable = lib.mkDefault accountEnabled;
|
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;
|
systemd.user.services = let emailAccounts = config.accounts.email.accounts;
|
||||||
in {
|
in {
|
||||||
protonmail-bridge = lib.mkIf emailAccounts.proton.mbsync.enable {
|
protonmail-bridge = lib.mkIf emailAccounts.proton.mbsync.enable {
|
||||||
|
|
Loading…
Reference in a new issue