Add calendar and contact sync
This commit is contained in:
29
home/calendar/default.nix
Normal file
29
home/calendar/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.khal.enable = true;
|
||||
|
||||
programs.vdirsyncer.enable = true;
|
||||
services.vdirsyncer.enable = true;
|
||||
|
||||
accounts.calendar = {
|
||||
basePath = "calendars";
|
||||
accounts = {
|
||||
nextcloud = {
|
||||
khal = {
|
||||
enable = true;
|
||||
type = "discover";
|
||||
};
|
||||
# primary = true;
|
||||
remote = {
|
||||
userName = "vale";
|
||||
passwordCommand = [ "${pkgs.libsecret}/bin/secret-tool" "lookup" "username" "vale" ];
|
||||
type = "caldav";
|
||||
url = "https://vapspace.org/remote.php/dav";
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
collections = [ "from a" "from b" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user