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";
|
2023-09-30 10:05:47 +01:00
|
|
|
passwordCommand = [
|
|
|
|
"${pkgs.libsecret}/bin/secret-tool"
|
|
|
|
"lookup"
|
|
|
|
"url"
|
2023-09-30 10:10:32 +01:00
|
|
|
"cloud.xenia.me.uk"
|
2023-09-30 10:05:47 +01:00
|
|
|
];
|
2023-09-25 14:22:51 +01:00
|
|
|
};
|
|
|
|
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
|
|
|
};
|
2023-09-29 09:55:52 +01:00
|
|
|
ukaea = {
|
|
|
|
local = {
|
|
|
|
type = "filesystem";
|
|
|
|
fileExt = ".ics";
|
|
|
|
};
|
|
|
|
remote = rec {
|
|
|
|
inherit (config.accounts.email.accounts.ukaea)
|
|
|
|
userName passwordCommand;
|
|
|
|
type = "caldav";
|
|
|
|
url = "http://localhost:1080/users/${userName}/calendar/";
|
|
|
|
};
|
2023-09-30 07:38:52 +01:00
|
|
|
vdirsyncer.collections = [ "from a" ];
|
|
|
|
khal.type = "discover";
|
2023-09-29 09:55:52 +01:00
|
|
|
};
|
2023-09-25 14:22:51 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|