Add initial (nextcloud) calendar and contact

This commit is contained in:
Evie Litherland-Smith 2023-09-25 14:22:51 +01:00
parent 33f182ecff
commit 103daec5c2
3 changed files with 57 additions and 1 deletions

View file

@ -0,0 +1,29 @@
{ 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" ];
};
};
};
};
}

27
home/accounts/contact.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
{
accounts.contact = {
basePath = ".contact";
accounts = {
nextcloud = {
local = {
type = "filesystem";
fileExt = ".vcf";
};
remote = {
inherit (config.accounts.calendar.accounts.nextcloud.remote)
userName passwordCommand;
type = "carddav";
url =
"https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/";
};
vdirsyncer = {
enable = true;
collections = [ "from a" ];
metadata = [ "color" "displayname" ];
};
};
};
};
}

View file

@ -1,5 +1,5 @@
{ ... }:
{
imports = [ ./email.nix ];
imports = [ ./email.nix ./calendar.nix ./contact.nix ];
}