Re-enable vdirsyncer config for ukaea

This commit is contained in:
Evie Litherland-Smith 2023-10-02 18:10:48 +01:00
parent 95433cd4ca
commit 2a478e5510
3 changed files with 22 additions and 10 deletions

View file

@ -10,7 +10,7 @@
basePath = ".calendar"; basePath = ".calendar";
accounts = { accounts = {
nextcloud = { nextcloud = {
primary = true; primary = lib.mkDefault true;
primaryCollection = "Personal"; primaryCollection = "Personal";
local = { local = {
type = "filesystem"; type = "filesystem";
@ -28,16 +28,17 @@
]; ];
}; };
vdirsyncer = { vdirsyncer = {
enable = true; enable = lib.mkDefault true;
collections = [ "from a" ]; collections = [ "from a" ];
metadata = [ "color" "displayname" ]; metadata = [ "color" "displayname" ];
}; };
khal = { khal = {
enable = true; enable = lib.mkDefault true;
type = "discover"; type = "discover";
}; };
}; };
ukaea = { ukaea = {
primaryCollection = "Calendar";
local = { local = {
type = "filesystem"; type = "filesystem";
fileExt = ".ics"; fileExt = ".ics";
@ -48,8 +49,16 @@
type = "caldav"; type = "caldav";
url = "http://localhost:1080/users/${userName}/calendar/"; url = "http://localhost:1080/users/${userName}/calendar/";
}; };
vdirsyncer.collections = [ "from a" ]; vdirsyncer = {
khal.type = "discover"; enable = lib.mkDefault true;
collections = [ "from a" ];
metadata = [ "color" "displayname" ];
itemTypes = [ "VEVENT" ];
};
khal = {
enable = lib.mkDefault true;
type = "discover";
};
}; };
}; };
}; };

View file

@ -19,7 +19,7 @@
"https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/"; "https://cloud.xenia.me.uk/remote.php/dav/addressbooks/users/xenia/contacts-1/";
}; };
vdirsyncer = { vdirsyncer = {
enable = true; enable = lib.mkDefault true;
collections = [ "from a" ]; collections = [ "from a" ];
}; };
}; };
@ -29,12 +29,15 @@
fileExt = ".vcf"; fileExt = ".vcf";
}; };
remote = rec { remote = rec {
inherit (config.accounts.email.accounts.ukaea) inherit (config.accounts.calendar.accounts.ukaea.remote)
userName passwordCommand; userName passwordCommand;
type = "carddav"; type = "carddav";
url = "http://localhost:1080/users/${userName}/contacts/"; url = "http://localhost:1080/users/${userName}/contacts/";
}; };
vdirsyncer.collections = [ "from a" ]; vdirsyncer = {
enable = lib.mkDefault true;
collections = [ "from a" ];
};
}; };
}; };
}; };

View file

@ -26,11 +26,11 @@
proton.primary = false; proton.primary = false;
ukaea.primary = true; ukaea.primary = true;
}; };
calendar.accounts.ukaea = { calendar.accounts.nextcloud = {
vdirsyncer.enable = false; # TEMP until fixed vdirsyncer.enable = false; # TEMP until fixed
khal.enable = false; # TEMP until fixed khal.enable = false; # TEMP until fixed
}; };
contact.accounts.ukaea = { contact.accounts.nextcloud = {
vdirsyncer.enable = false; # TEMP until fixed vdirsyncer.enable = false; # TEMP until fixed
}; };
}; };