about summary refs log tree commit diff
path: root/nixos/.config/systemd/user/mbsync-primary.service
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-10 15:34:49 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-06-10 15:34:49 +0700
commit7744ecfaacc668d75ac0d4d458d95e7d549a826f (patch)
treed833a128037f5a1807c417d86d92d6bc95987a62 /nixos/.config/systemd/user/mbsync-primary.service
parent9ec5278c3faffaf8b861cb89b89ec344a88471d9 (diff)
downloaddotfiles-7744ecfaacc668d75ac0d4d458d95e7d549a826f.tar.gz
Set up NixOS
Diffstat (limited to 'nixos/.config/systemd/user/mbsync-primary.service')
-rw-r--r--nixos/.config/systemd/user/mbsync-primary.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/.config/systemd/user/mbsync-primary.service b/nixos/.config/systemd/user/mbsync-primary.service
new file mode 100644
index 0000000..8ce0e6f
--- /dev/null
+++ b/nixos/.config/systemd/user/mbsync-primary.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Synchronize IMAP and MailDir for primary account
+Documentation=man:mbsync(1)
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/mbsync primary
+Type=oneshot
+
+[Install]
+WantedBy=default.target