From 4f38e374d1cbf11fae0e49a3dfedfe2115e83c9b Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 5 Jun 2024 10:17:38 +0200 Subject: Pare down work-only calendar sync config * copy relevant entries into work-only vdirsyncer config * fix CERN Exchange calendar configuration * remove default calendar in khal, so that it works on the work machine --- tw/services/files/khal.conf | 1 - tw/services/files/vdirsyncer.conf | 8 +++++++ tw/services/files/vdirsyncer.work.conf | 38 ++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 tw/services/files/vdirsyncer.work.conf (limited to 'tw/services/files') diff --git a/tw/services/files/khal.conf b/tw/services/files/khal.conf index 3240609a..ea508677 100644 --- a/tw/services/files/khal.conf +++ b/tw/services/files/khal.conf @@ -1,7 +1,6 @@ # https://lostpackets.de/khal/configure.html [default] -default_calendar = Personal highlight_event_days = True show_all_days = True timedelta = 7d diff --git a/tw/services/files/vdirsyncer.conf b/tw/services/files/vdirsyncer.conf index 0745c98f..9e38c37b 100644 --- a/tw/services/files/vdirsyncer.conf +++ b/tw/services/files/vdirsyncer.conf @@ -76,6 +76,14 @@ type = "http" # The URL contains an access token, so get it from pass. url.fetch = ["shell", "~/.guix-home/profile/bin/pass cern/indico-calendar-url | head -1"] +# Work Exchange calendar (read-only). +[pair cern] +a = "cern_calendar" +b = "local_cern_calendar" +metadata = [] +collections = null +conflict_resolution = "a wins" + [storage local_cern_calendar] type = "filesystem" path = "~/.local/share/vdirsyncer/cern" diff --git a/tw/services/files/vdirsyncer.work.conf b/tw/services/files/vdirsyncer.work.conf new file mode 100644 index 00000000..705a67bd --- /dev/null +++ b/tw/services/files/vdirsyncer.work.conf @@ -0,0 +1,38 @@ +[general] +status_path = "~/.local/share/vdirsyncer/status" + +# Work Indico calendar (read-only). +[pair indico] +a = "indico_calendar" +b = "local_indico_calendar" +metadata = [] +collections = null +conflict_resolution = "a wins" + +[storage local_indico_calendar] +type = "filesystem" +path = "~/.local/share/vdirsyncer/indico" +fileext = ".ics" + +[storage indico_calendar] +type = "http" +# The URL contains an access token, so get it from pass. +url.fetch = ["shell", "~/.guix-home/profile/bin/pass cern/indico-calendar-url | head -1"] + +# Work Exchange calendar (read-only). +[pair cern] +a = "cern_calendar" +b = "local_cern_calendar" +metadata = [] +collections = null +conflict_resolution = "a wins" + +[storage local_cern_calendar] +type = "filesystem" +path = "~/.local/share/vdirsyncer/cern" +fileext = ".ics" + +[storage cern_calendar] +type = "http" +# The URL contains an access token, so get it from pass. +url.fetch = ["shell", "~/.guix-home/profile/bin/pass cern/exol/calendar-url | head -1"] -- cgit v1.2.3