-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(calendar): add mailbox.org calendars
- Loading branch information
1 parent
90b7049
commit a46075b
Showing
4 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
{ pkgs, osConfig, ... }: | ||
let | ||
common = { | ||
khal = { | ||
enable = true; | ||
type = "discover"; | ||
}; | ||
local = { | ||
type = "filesystem"; | ||
fileExt = ".ics"; | ||
}; | ||
}; | ||
in | ||
{ | ||
programs.vdirsyncer.enable = true; | ||
services.vdirsyncer.enable = true; | ||
|
@@ -9,16 +21,8 @@ | |
|
||
accounts = { | ||
nextcloud = { | ||
khal = { | ||
enable = true; | ||
color = "light green"; | ||
type = "discover"; | ||
}; | ||
|
||
local = { | ||
type = "filesystem"; | ||
fileExt = ".ics"; | ||
}; | ||
khal = common.khal; | ||
local = common.local; | ||
|
||
remote = { | ||
type = "caldav"; | ||
|
@@ -34,6 +38,24 @@ | |
conflictResolution = "remote wins"; | ||
}; | ||
}; | ||
mailbox_org = { | ||
khal = common.khal; | ||
local = common.local; | ||
|
||
remote = { | ||
type = "caldav"; | ||
url = "https://dav.mailbox.org"; | ||
userName = "[email protected]"; | ||
passwordCommand = [ "${pkgs.coreutils}/bin/cat" osConfig.age.secrets.mailboxOrgPassword.path ]; | ||
}; | ||
|
||
vdirsyncer = { | ||
enable = true; | ||
metadata = [ "color" ]; | ||
collections = [ "Y2FsOi8vMC8zMQ" "Y2FsOi8vMC80OA" "Y2FsOi8vMC80Mw" "Y2FsOi8vMC80Ng" "Y2FsOi8vMS8w" ]; | ||
conflictResolution = "remote wins"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
age-encryption.org/v1 | ||
-> ssh-ed25519 Zy726Q Jm4WPS6VJvJn05/ofQZ2WzugALHKvFQxlamQ6KOL3mg | ||
Yk2PRWwYXuqoeGqPmH6dpE5zsO3pC2wSMgvA1NrbJCk | ||
--- Hg00UeLZJ7DH5vuhJVoiCDqG3tzdqaRd4fBN0Jyy1j4 | ||
WT�.$�B��Gk|8�@èB����y)֭���.��~�����!��*,�(b�w*�C~'�wm���0�a��Mܩ��Qvnv��)����Rj'�Q����|�2��g\�ۄn0�� |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters