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 = {
|
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" ];
|
||||||
|
|
Loading…
Reference in a new issue