nixos/home/accounts/calendar.nix

30 lines
687 B
Nix

{ config, lib, pkgs, ... }:
{
programs.vdirsyncer.enable = true;
accounts.calendar = {
basePath = ".calendar";
accounts = {
nextcloud = {
primary = true;
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" ];
};
};
};
};
}