Add initial (nextcloud) calendar and contact
This commit is contained in:
parent
33f182ecff
commit
103daec5c2
29
home/accounts/calendar.nix
Normal file
29
home/accounts/calendar.nix
Normal 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
27
home/accounts/contact.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ ./email.nix ];
|
||||
imports = [ ./email.nix ./calendar.nix ./contact.nix ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue