fixing systemd for vdirsyncer

This commit is contained in:
Anthony Debucquoy
2026-09-16 13:08:08 +02:00
committed by Anthony Debucquoy
parent 127e93c05a
commit 4fc1a78ce4
4 changed files with 27 additions and 4 deletions
+7 -1
View File
@@ -1,7 +1,13 @@
[calendars]
[[google_local]]
path = ~/.cache/calendar/google/*
color = light blue
type = discover
[[nextcloud_cal_local]]
path = ~/.cache/calendar/nextcloud/*
color = dark green
type = discover
[[nextcloud_card_local]]
@@ -23,7 +29,7 @@
[highlight_days]
color = dark green
default_color = dark blue
default_color = light blue
multiple = dark red
[view]
@@ -1,9 +1,9 @@
[Unit]
Description=Syncronise Nextcloud instance
Description=Run vdirSyncer
[Service]
Type=oneshot
ExecStart=nextcloudcmd /media/nextcloud 'https://tonitch:jOkN5UaCMRRnjLIe3cH9KEXzb@nc.debucquoy.me'
ExecStart=vdirsyncer sync
[Install]
WantedBy=default.target
@@ -1,5 +1,5 @@
[Unit]
Description=Run nextcloud sync every 15 minutes
Description=run vdirsyncer every 15 min
[Timer]
OnActiveSec=10min
+17
View File
@@ -34,3 +34,20 @@ status_path = "~/.vdirsyncer/status/"
b = "nextcloud_card_local"
collections = ["from a"]
metadata= ["displayname"]
[storage debucquoyanthony_remote]
type = "google_calendar"
client_id.fetch = ["command", "cat", "~/.config/pass/debucquoyanthony_id.txt"]
client_secret.fetch = ["command", "cat", "~/.config/pass/debucquoyanthony_secret.txt"]
token_file = "~/.config/pass/debucquoyanthony_token.txt"
[storage debucquoyanthony_local]
type = "filesystem"
path = "~/.cache/calendar/google/debucquoyanthony"
fileext = ".ics"
[pair debucquoyanthony_cal]
a = "debucquoyanthony_remote"
b = "debucquoyanthony_local"
collections = ["from a"]
metadata= ["color", "displayname", "description", "order"]