Adjust systemd mail unit dependencies

This commit is contained in:
Evie Litherland-Smith 2023-10-02 06:26:54 +01:00
parent e5e5bf577b
commit aadb3fc92e

View file

@ -157,6 +157,14 @@
};
};
systemd.user.services = {
imapnotify-proton.Unit = {
Wants = [ "protonmail-bridge.service" ];
After = [ "protonmail-bridge.service" ];
};
imapnotify-ukaea.Unit = {
Wants = [ "davmail.service" ];
After = [ "davmail.service" ];
};
protonmail-bridge =
lib.mkIf config.accounts.email.accounts.proton.mbsync.enable {
Unit = {
@ -194,11 +202,7 @@
Type = "notify";
NotifyAccess = "all";
};
Install.WantedBy = [
"graphical-session.target"
"mbsync.service"
"imapnotify-proton.service"
];
Install.WantedBy = [ "default.target" ];
};
davmail = lib.mkIf config.accounts.email.accounts.ukaea.mbsync.enable {
Unit = {
@ -237,11 +241,7 @@
Type = "notify";
NotifyAccess = "all";
};
Install.WantedBy = [
"graphical-session.target"
"mbsync.service"
"imapnotify-ukaea.service"
];
Install.WantedBy = [ "default.target" ];
};
};
}