Skip to content

Commit

Permalink
feat(calendar): add mailbox.org calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Jul 15, 2024
1 parent 90b7049 commit a46075b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
42 changes: 32 additions & 10 deletions home/calendar.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{ pkgs, osConfig, ... }:
let
common = {
khal = {
enable = true;
type = "discover";
};
local = {
type = "filesystem";
fileExt = ".ics";
};
};
in
{
programs.vdirsyncer.enable = true;
services.vdirsyncer.enable = true;
Expand All @@ -9,16 +21,8 @@

accounts = {
nextcloud = {
khal = {
enable = true;
color = "light green";
type = "discover";
};

local = {
type = "filesystem";
fileExt = ".ics";
};
khal = common.khal;
local = common.local;

remote = {
type = "caldav";
Expand All @@ -34,6 +38,24 @@
conflictResolution = "remote wins";
};
};
mailbox_org = {
khal = common.khal;
local = common.local;

remote = {
type = "caldav";
url = "https://dav.mailbox.org";
userName = "[email protected]";
passwordCommand = [ "${pkgs.coreutils}/bin/cat" osConfig.age.secrets.mailboxOrgPassword.path ];
};

vdirsyncer = {
enable = true;
metadata = [ "color" ];
collections = [ "Y2FsOi8vMC8zMQ" "Y2FsOi8vMC80OA" "Y2FsOi8vMC80Mw" "Y2FsOi8vMC80Ng" "Y2FsOi8vMS8w" ];
conflictResolution = "remote wins";
};
};
};
};
}
5 changes: 5 additions & 0 deletions modules/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
owner = "ruben";
group = "users";
};
age.secrets.mailboxOrgPassword = {
file = ../secrets/mailbox-org-password.age;
owner = "ruben";
group = "users";
};
}
5 changes: 5 additions & 0 deletions secrets/mailbox-org-password.age
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
age-encryption.org/v1
-> ssh-ed25519 Zy726Q Jm4WPS6VJvJn05/ofQZ2WzugALHKvFQxlamQ6KOL3mg
Yk2PRWwYXuqoeGqPmH6dpE5zsO3pC2wSMgvA1NrbJCk
--- Hg00UeLZJ7DH5vuhJVoiCDqG3tzdqaRd4fBN0Jyy1j4
WT�.$�B��Gk|8�@èB����y)֭���.��~�����!��*,�(b�w*�C~'�wm���0�a��Mܩ��Qvnv��)����Rj'�Q����|�2��g\�ۄn0��
1 change: 1 addition & 0 deletions secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ in
"wireguard-private-key.age".publicKeys = [ millenium-falcon ];
"wireguard-preshared-key.age".publicKeys = [ millenium-falcon ];
"nextcloud-calendar-token.age".publicKeys = [ millenium-falcon ];
"mailbox-org-password.age".publicKeys = [ millenium-falcon ];
}

0 comments on commit a46075b

Please sign in to comment.