about summary refs log tree commit diff
path: root/nixos/.config/systemd/user/mbsync-legacy.service
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/.config/systemd/user/mbsync-legacy.service')
-rw-r--r--nixos/.config/systemd/user/mbsync-legacy.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/.config/systemd/user/mbsync-legacy.service b/nixos/.config/systemd/user/mbsync-legacy.service
new file mode 100644
index 0000000..e0954de
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync-legacy.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Synchronize IMAP and MailDir for legacy account
+Documentation=man:mbsync(1)
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/mbsync legacy
+Type=oneshot
+
+[Install]
+WantedBy=default.target