Since I’m trying to use org-agenda more, I spent a bit of time setting it up to show my CalDAV calendars (usually work meetings) using vdirsyncer, khal, khalel and nix/home-manager. I didn’t find any HOWTO on the web, so I had to read the documentation of the tools (yes, I know, the horror :D) to set it up, hence this write-up.
Let’s start with home-manager to install and configure vdirsyncer (which sync CalDAV calendars locally) and khal (which is an interface for the local calendars).
The snippets in the following article won’t work with tasks that require taking a note after being set: you’ll be left with a note where the task was.
I recently stumbled upon this article from systemcrafters, and quite liked the idea of being able to store DONE tasks into org-roam dailies. However, I already had a working system using org archives which held metadata about the task and kept hierarchy, and I wanted to avoid scrapping that (I also think it makes more sense to archive DONE tasks than to refile them) so I adapted the snippet from systemcrafters’ article to fit my needs.