Add calendar and contact sync
This commit is contained in:
parent
02a404c13f
commit
5ddbecdb37
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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
34
home/contacts/default.nix
Normal file
34
home/contacts/default.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -2,8 +2,10 @@ user:
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./bat.nix
|
./bat.nix
|
||||||
|
./calendar/default.nix
|
||||||
./cbatticon.nix
|
./cbatticon.nix
|
||||||
./chromium.nix
|
./chromium.nix
|
||||||
|
./contacts/default.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
./discord.nix
|
./discord.nix
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user