66 lines
1.6 KiB
Nix
66 lines
1.6 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs = {
|
|
vdirsyncer.enable = true;
|
|
khal.enable = true;
|
|
};
|
|
services.vdirsyncer.enable = true;
|
|
accounts.calendar = {
|
|
basePath = ".calendar";
|
|
accounts = {
|
|
nextcloud = {
|
|
primary = lib.mkDefault true;
|
|
primaryCollection = "Personal";
|
|
local = {
|
|
type = "filesystem";
|
|
fileExt = ".ics";
|
|
};
|
|
remote = {
|
|
type = "caldav";
|
|
url = "https://cloud.xenia.me.uk/remote.php/dav";
|
|
userName = "xenia";
|
|
passwordCommand = [
|
|
"${pkgs.libsecret}/bin/secret-tool"
|
|
"lookup"
|
|
"url"
|
|
"cloud.xenia.me.uk"
|
|
];
|
|
};
|
|
vdirsyncer = {
|
|
enable = lib.mkDefault true;
|
|
collections = [ "from a" ];
|
|
metadata = [ "color" "displayname" ];
|
|
};
|
|
khal = {
|
|
enable = lib.mkDefault true;
|
|
type = "discover";
|
|
};
|
|
};
|
|
ukaea = {
|
|
primaryCollection = "Calendar";
|
|
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 = lib.mkDefault true;
|
|
collections = [ "from a" ];
|
|
metadata = [ "color" "displayname" ];
|
|
itemTypes = [ "VEVENT" ];
|
|
};
|
|
khal = {
|
|
enable = lib.mkDefault true;
|
|
type = "discover";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|