about summary refs log tree commit diff
path: root/debian
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-05-30 14:59:12 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-05-30 14:59:12 +0700
commit7f29a1e519d51934ecf86ddd6fc7d080b2eaaf91 (patch)
tree2c3dc15e5882fdd61636d714cc877727f2261970 /debian
parente36712f2b02e77080e255c7775852577b51010ad (diff)
downloaddotfiles-7f29a1e519d51934ecf86ddd6fc7d080b2eaaf91.tar.gz
Set up mbsync
Diffstat (limited to 'debian')
l---------debian/.config/systemd/user/default.target.wants/mbsync-legacy.timer1
l---------debian/.config/systemd/user/default.target.wants/mbsync-primary.timer1
-rw-r--r--debian/.config/systemd/user/ipfs.service2
-rw-r--r--debian/.config/systemd/user/mbsync-legacy.service12
-rw-r--r--debian/.config/systemd/user/mbsync-legacy.timer11
-rw-r--r--debian/.config/systemd/user/mbsync-primary.service12
-rw-r--r--debian/.config/systemd/user/mbsync-primary.timer11
7 files changed, 49 insertions, 1 deletions
diff --git a/debian/.config/systemd/user/default.target.wants/mbsync-legacy.timer b/debian/.config/systemd/user/default.target.wants/mbsync-legacy.timer
new file mode 120000
index 0000000..f24d52e
--- /dev/null
+++ b/debian/.config/systemd/user/default.target.wants/mbsync-legacy.timer
@@ -0,0 +1 @@
+/home/cnx/.config/systemd/user/mbsync-legacy.timer
\ No newline at end of file
diff --git a/debian/.config/systemd/user/default.target.wants/mbsync-primary.timer b/debian/.config/systemd/user/default.target.wants/mbsync-primary.timer
new file mode 120000
index 0000000..2772b5b
--- /dev/null
+++ b/debian/.config/systemd/user/default.target.wants/mbsync-primary.timer
@@ -0,0 +1 @@
+/home/cnx/.config/systemd/user/mbsync-primary.timer
\ No newline at end of file
diff --git a/debian/.config/systemd/user/ipfs.service b/debian/.config/systemd/user/ipfs.service
index 5d67f7e..68b2027 100644
--- a/debian/.config/systemd/user/ipfs.service
+++ b/debian/.config/systemd/user/ipfs.service
@@ -3,7 +3,7 @@ Description=IPFS daemon
 After=network.target
 
 [Service]
-ExecStart=/home/cnx/.local/share/go/bin/ipfs daemon --mount
+ExecStart=%h/.local/share/go/bin/ipfs daemon
 Restart=on-failure
 
 [Install]
diff --git a/debian/.config/systemd/user/mbsync-legacy.service b/debian/.config/systemd/user/mbsync-legacy.service
new file mode 100644
index 0000000..e0954de
--- /dev/null
+++ b/debian/.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
diff --git a/debian/.config/systemd/user/mbsync-legacy.timer b/debian/.config/systemd/user/mbsync-legacy.timer
new file mode 100644
index 0000000..3ea535a
--- /dev/null
+++ b/debian/.config/systemd/user/mbsync-legacy.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Timer for legacy accound mbsync
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Timer]
+OnBootSec=1m
+OnUnitInactiveSec=1m
+
+[Install]
+WantedBy=default.target
diff --git a/debian/.config/systemd/user/mbsync-primary.service b/debian/.config/systemd/user/mbsync-primary.service
new file mode 100644
index 0000000..8ce0e6f
--- /dev/null
+++ b/debian/.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
diff --git a/debian/.config/systemd/user/mbsync-primary.timer b/debian/.config/systemd/user/mbsync-primary.timer
new file mode 100644
index 0000000..a0f4151
--- /dev/null
+++ b/debian/.config/systemd/user/mbsync-primary.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Timer for primary accound mbsync
+ConditionPathExists=%h/.mbsyncrc
+After=network.target
+
+[Timer]
+OnBootSec=1m
+OnUnitInactiveSec=1m
+
+[Install]
+WantedBy=default.target