Add calendar and contact sync

This commit is contained in:
Valentin Brandl 2025-04-26 11:14:33 +02:00
parent 02a404c13f
commit 5ddbecdb37
Signed by: vbrandl
GPG Key ID: 7FB009175885FC76
3 changed files with 65 additions and 0 deletions

29
home/calendar/default.nix Normal file
View 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" ];
};
};
};
};
}

34
home/contacts/default.nix Normal file
View File

@ -0,0 +1,34 @@
{ pkgs, ... }: {
# programs.khal.enable = true;
programs.khard.enable = true;
services.vdirsyncer.enable = true;
accounts.contact = {
basePath = "contacts";
accounts = {
nextcloud = {
khard = {
enable = true;
defaultCollection = "kontakte";
};
local = {
type = "filesystem";
fileExt = ".vcf";
};
# primary = true;
remote = {
userName = "vale";
passwordCommand = [ "${pkgs.libsecret}/bin/secret-tool" "lookup" "username" "vale" ];
type = "carddav";
url = "https://vapspace.org/remote.php/dav";
};
vdirsyncer = {
enable = true;
collections = [ "from a" "from b" ];
};
};
};
};
}

View File

@ -2,8 +2,10 @@ user:
{ ... }: {
imports = [
./bat.nix
./calendar/default.nix
./cbatticon.nix
./chromium.nix
./contacts/default.nix
./direnv.nix
./discord.nix
./dunst.nix