about summary refs log tree commit diff
path: root/nixos/.config/systemd/user/mbsync.service
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-12 21:26:56 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-12 21:26:56 +0700
commit88051c9ccfa9b863b41f0ae86dbb1caaeb739743 (patch)
treeb013742178c012abcb11d72e888be4b62105fc40 /nixos/.config/systemd/user/mbsync.service
parentc6b2aca48fc3aa2a0039a99aad8fdb13b926fa94 (diff)
downloaddotfiles-88051c9ccfa9b863b41f0ae86dbb1caaeb739743.tar.gz
Overhaul configurations
Diffstat (limited to 'nixos/.config/systemd/user/mbsync.service')
-rw-r--r--nixos/.config/systemd/user/mbsync.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/.config/systemd/user/mbsync.service b/nixos/.config/systemd/user/mbsync.service
new file mode 100644
index 0000000..55b05b0
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Synchronize IMAP and MailDir
+Documentation=man:mbsync(1)
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Service]
+ExecStart=/run/current-system/sw/bin/mbsync primary legacy
+Type=oneshot
+
+[Install]
+WantedBy=default.target