diff options
author | Timo Wilken | 2024-06-05 10:17:38 +0200 |
---|---|---|
committer | Timo Wilken | 2024-06-05 13:03:34 +0200 |
commit | 4f38e374d1cbf11fae0e49a3dfedfe2115e83c9b (patch) | |
tree | 61b92801525259eb57e32574f148ad7f6170d167 /tw | |
parent | b3a722f52a0be3f6d8b4f3fa6ba7b8848cc3a34d (diff) |
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
Diffstat (limited to 'tw')
-rw-r--r-- | tw/services/desktop.scm | 4 | ||||
-rw-r--r-- | tw/services/files/khal.conf | 1 | ||||
-rw-r--r-- | tw/services/files/vdirsyncer.conf | 8 | ||||
-rw-r--r-- | tw/services/files/vdirsyncer.work.conf | 38 |
4 files changed, 49 insertions, 2 deletions
diff --git a/tw/services/desktop.scm b/tw/services/desktop.scm index 9ec06bce..28f91e46 100644 --- a/tw/services/desktop.scm +++ b/tw/services/desktop.scm @@ -487,7 +487,9 @@ proprietary NVIDIA driver?")) ("aerc/binds.conf" ,(local-file "files/aerc/binds.conf")) ("aerc/filters" ,(local-file "files/aerc/filters" #:recursive? #t)) ("aerc/stylesets/catppuccin" ,(local-file "files/aerc/catppuccin.conf")) - ("vdirsyncer/config" ,(local-file "files/vdirsyncer.conf")) + ("vdirsyncer/config" ,(if work? + (local-file "files/vdirsyncer.work.conf") + (local-file "files/vdirsyncer.conf"))) ,@(if work? '() `(("newsboat/config" ,(local-file "files/newsboat.conf")) ("newsboat/config.catppuccin" ,catppuccin-newsboat)))))) 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"] |