Adjust systemd mail unit dependencies
This commit is contained in:
parent
e5e5bf577b
commit
aadb3fc92e
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue