Skip to content

Instantly share code, notes, and snippets.

@amandabee
Last active October 15, 2019 06:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandabee/6823142b8ba0c40272d374fc133b5ab0 to your computer and use it in GitHub Desktop.
Save amandabee/6823142b8ba0c40272d374fc133b5ab0 to your computer and use it in GitHub Desktop.
An overview of my setup.
[calendars]
[[calendars]]
path = /home/amanda/.nextcloud/calendars/*
type = discover
[[google]]
path = /home/amanda/.nextcloud/google/*
type = discover
[locale]
timeformat = %H:%M
dateformat = %d-%b
longdateformat = %d-%b-%Y
datetimeformat = %d-%b-%Y %H:%M
longdatetimeformat = %d/%m/%Y %H:%M
[default]
timedelta = 7d
highlight_event_days = true
print_new = event
[view]
agenda_event_format = "{calendar-color}{cancelled}{start-time}-{end-time} | {calendar:10s} | {title}{repeat-symbol}{reset}"
[addressbooks]
[[All]]
path = ~/.nextcloud/addresses/contacts
[general]
debug = no
default_action = list
editor = gedit
merge_editor = meld
[contact table]
# display names by first or last name: first_name / last_name
display = first_name
# group by address book: yes / no
group_by_addressbook = no
# reverse table ordering: yes / no
reverse = no
# append nicknames to name column: yes / no
show_nicknames = yes
# show uid table column: yes / no
show_uids = yes
# sort by first or last name: first_name / last_name
sort = last_name
[vcard]
# extend contacts with your own private objects
# these objects are stored with a leading "X-" before the object name in the vcard files
# every object label may only contain letters, digits and the - character
# example:
# private_objects = Jabber, Skype, Twitter
private_objects = Jabber, Skype, Twitter
# preferred vcard version: 3.0 / 4.0
preferred_version = 3.0
# Look into source vcf files to speed up search queries: yes / no
search_in_source_files = yes
# skip unparsable vcard files: yes / no
skip_unparsable = no

Server

On Dreamost, running Nextcloud with sqlite3 storage, and a Let's Encrypt certificate.

I'm running php 7.0, and edited .php/7.0/phprc to add the following line:

extension=fileinfo.so

Phone

On my phone I have both CalDAV-Sync and DAVdroid (also available through F-Droid running. I think I only need DAVdroid, but I had CalDAV-Sync first and it works so ¯_(ツ)_/¯

I use CalDAV-Sync to sync calendars/tasks and DAVdroid to sync contacts.

Laptop

On my laptop, I sync calendars with vdirsyncer + khal, and sync addresses with vdirsyncer + khard. Mutt is now using khard to autocomplete addresses. I store my Nextcloud password in pass

.dotfiles

Mutt and Offlineimap configs at: https://gist.github.com/amandabee/cf7faad0a6f2afc485ee

[general]
status_path = "~/.vdirsyncer/status/"
[pair calendars]
a = "local_calendars"
b = "nextcloud_calendars"
collections = ["from a", "from b"]
metadata = ["color"]
[storage local_calendars]
type = "filesystem"
path = "~/.nextcloud/calendars"
fileext = ".ics"
[storage nextcloud_calendars]
type = "caldav"
url = "https://example.com/nextcloud/remote.php/caldav"
username = "amanda"
password.fetch = ["command","pass","Nextcloud/amanda"]
[pair cards]
a = "local_cards"
b = "nextcloud_cards"
collections = ["from a", "from b"]
conflict_resolution = ["command","meld"]
# partial_sync = "revert"
[storage local_cards]
type = "filesystem"
path = "~/.nextcloud/addresses/"
fileext = ".vcf"
[storage nextcloud_cards]
type = "carddav"
url = "https://example.com/nextcloud/remote.php/carddav"
username = "amanda"
password.fetch = ["command","pass","Nextcloud/amanda"]
# read_only = true
[pair work_common]
a = "work_common_local"
b = "work_common_remote"
collections = null
[storage work_common_local]
type = "filesystem"
path = "~/.nextcloud/google/work_common"
fileext = ".ics"
[storage work_common_remote]
type = "http"
url = "{redacted}"
read_only = true
[pair work_abh]
a = "work_abh_local"
b = "work_abh_remote"
collections = null
[storage work_abh_local]
type = "filesystem"
path = "~/.nextcloud/google/work_abh"
fileext = ".ics"
[storage work_abh_remote]
type = "http"
url = "{redacted}"
read_only = true
[pair teaching_abh]
a = "teaching_abh_local"
b = "teaching_abh_remote"
collections = null
[storage teaching_abh_local]
type = "filesystem"
path = "~/.nextcloud/google/teaching_abh"
fileext = ".ics"
[storage teaching_abh_remote]
type = "http"
url = "{redacted}"
read_only = true
[pair us_holidays]
a = "us_holidays_local"
b = "us_holidays_remote"
collections = null
[storage us_holidays_local]
type = "filesystem"
path = "~/.nextcloud/google/us_holidays"
fileext = ".ics"
[storage us_holidays_remote]
type = "http"
url = "https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics"
read_only = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment