2023-09-25 14:22:51 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-09-26 10:02:40 +01:00
|
|
|
programs = {
|
|
|
|
vdirsyncer.enable = true;
|
|
|
|
khal.enable = true;
|
|
|
|
};
|
2023-09-25 14:22:51 +01:00
|
|
|
accounts.calendar = {
|
|
|
|
basePath = ".calendar";
|
|
|
|
accounts = {
|
|
|
|
nextcloud = {
|
|
|
|
primary = true;
|
2023-09-26 10:02:40 +01:00
|
|
|
primaryCollection = "Personal";
|
2023-09-25 14:22:51 +01:00
|
|
|
local = {
|
|
|
|
type = "filesystem";
|
|
|
|
fileExt = ".ics";
|
|
|
|
};
|
|
|
|
remote = {
|
|
|
|
type = "caldav";
|
|
|
|
url = "https://cloud.xenia.me.uk/remote.php/dav";
|
|
|
|
userName = "xenia";
|
|
|
|
passwordCommand =
|
|
|
|
[ "${pkgs.pass}/bin/pass" "show" "Calendar/NextCloud/emacs" ];
|
|
|
|
};
|
|
|
|
vdirsyncer = {
|
|
|
|
enable = true;
|
|
|
|
collections = [ "from a" ];
|
|
|
|
metadata = [ "color" "displayname" ];
|
|
|
|
};
|
2023-09-26 10:02:40 +01:00
|
|
|
khal = {
|
|
|
|
enable = true;
|
|
|
|
type = "discover";
|
|
|
|
};
|
2023-09-25 14:22:51 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|