mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 03:59:23 +00:00
43 lines
868 B
Nix
43 lines
868 B
Nix
{
|
|
programs.vdirsyncer.enable = true;
|
|
|
|
accounts.calendar = {
|
|
basePath = "/home/hm-user/calendars";
|
|
accounts = {
|
|
implicit = {
|
|
vdirsyncer.enable = true;
|
|
remote = {
|
|
type = "http";
|
|
url = "https://example.com/implicit.ics";
|
|
};
|
|
};
|
|
|
|
readOnly = {
|
|
vdirsyncer = {
|
|
enable = true;
|
|
localReadOnly = true;
|
|
};
|
|
remote = {
|
|
type = "caldav";
|
|
url = "https://example.com/calendars/";
|
|
};
|
|
};
|
|
|
|
readWrite = {
|
|
vdirsyncer = {
|
|
enable = true;
|
|
localReadOnly = false;
|
|
};
|
|
remote = {
|
|
type = "http";
|
|
url = "https://example.com/read-write.ics";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent home-files/.config/vdirsyncer/config ${./read-only.conf}
|
|
'';
|
|
}
|