nixos/home/accounts/calendar.nix

66 lines
1.6 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
2023-09-26 10:02:40 +01:00
programs = {
vdirsyncer.enable = true;
khal.enable = true;
};
2023-10-01 09:17:45 +01:00
services.vdirsyncer.enable = true;
accounts.calendar = {
basePath = ".calendar";
accounts = {
nextcloud = {
2023-10-02 18:10:48 +01:00
primary = lib.mkDefault true;
2023-09-26 10:02:40 +01:00
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"
2023-09-30 10:10:32 +01:00
"cloud.xenia.me.uk"
];
};
vdirsyncer = {
2023-10-02 18:10:48 +01:00
enable = lib.mkDefault true;
collections = [ "from a" ];
metadata = [ "color" "displayname" ];
};
2023-09-26 10:02:40 +01:00
khal = {
2023-10-02 18:10:48 +01:00
enable = lib.mkDefault true;
2023-09-26 10:02:40 +01:00
type = "discover";
};
};
ukaea = {
2023-10-02 18:10:48 +01:00
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/";
};
2023-10-02 18:10:48 +01:00
vdirsyncer = {
enable = lib.mkDefault true;
collections = [ "from a" ];
metadata = [ "color" "displayname" ];
itemTypes = [ "VEVENT" ];
};
khal = {
enable = lib.mkDefault true;
type = "discover";
};
};
};
};
}