58 lines
1.4 KiB
Nix
58 lines
1.4 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs = {
|
|
vdirsyncer.enable = true;
|
|
khal.enable = true;
|
|
};
|
|
accounts.calendar = {
|
|
basePath = ".calendar";
|
|
accounts = {
|
|
nextcloud = {
|
|
primary = true;
|
|
primaryCollection = "Personal";
|
|
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" ];
|
|
};
|
|
khal = {
|
|
enable = true;
|
|
type = "discover";
|
|
};
|
|
};
|
|
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/";
|
|
};
|
|
vdirsyncer = {
|
|
enable = false; # TEMP until fixed
|
|
collections = [ "from a" ];
|
|
};
|
|
khal = {
|
|
enable = false; # TEMP until fixed
|
|
type = "discover";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|