Only make systemd services if mbsync for account is enabled
This commit is contained in:
parent
069bf62ca4
commit
55a6c3c281
|
@ -150,7 +150,8 @@
|
|||
};
|
||||
};
|
||||
systemd.user.services = {
|
||||
protonmail-bridge = {
|
||||
protonmail-bridge =
|
||||
lib.mkIf config.accounts.email.accounts.proton.mbsync.enable {
|
||||
Unit = {
|
||||
Description = "Protonmail Bridge";
|
||||
After = [ "network.target" ];
|
||||
|
@ -167,7 +168,7 @@
|
|||
"imapnotify-proton.service"
|
||||
];
|
||||
};
|
||||
davmail = {
|
||||
davmail = lib.mkIf config.accounts.email.accounts.ukaea.mbsync.enable {
|
||||
Unit = {
|
||||
Description = "DavMail";
|
||||
After = [ "network.target" ];
|
||||
|
|
Loading…
Reference in a new issue