Only make systemd services if mbsync for account is enabled

This commit is contained in:
Evie Litherland-Smith 2023-10-01 09:20:15 +01:00
parent 069bf62ca4
commit 55a6c3c281

View file

@ -150,7 +150,8 @@
}; };
}; };
systemd.user.services = { systemd.user.services = {
protonmail-bridge = { protonmail-bridge =
lib.mkIf config.accounts.email.accounts.proton.mbsync.enable {
Unit = { Unit = {
Description = "Protonmail Bridge"; Description = "Protonmail Bridge";
After = [ "network.target" ]; After = [ "network.target" ];
@ -167,7 +168,7 @@
"imapnotify-proton.service" "imapnotify-proton.service"
]; ];
}; };
davmail = { davmail = lib.mkIf config.accounts.email.accounts.ukaea.mbsync.enable {
Unit = { Unit = {
Description = "DavMail"; Description = "DavMail";
After = [ "network.target" ]; After = [ "network.target" ];