2023-07-04 10:14:47 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2023-08-30 09:57:47 +00:00
|
|
|
programs.khal = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
default.timedelta = "5d";
|
|
|
|
view.agenda_event_format =
|
|
|
|
"{calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{reset}";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2023-07-04 10:14:47 +00:00
|
|
|
accounts.calendar = {
|
|
|
|
basePath = "$XDG_CONFIG_HOME/cal";
|
|
|
|
accounts = {
|
|
|
|
test = {
|
|
|
|
primary = true;
|
|
|
|
primaryCollection = "test";
|
|
|
|
khal = {
|
|
|
|
enable = true;
|
|
|
|
readOnly = true;
|
|
|
|
type = "calendar";
|
|
|
|
};
|
|
|
|
local.type = "filesystem";
|
|
|
|
local.fileExt = ".ics";
|
|
|
|
name = "test";
|
|
|
|
remote = {
|
|
|
|
type = "http";
|
|
|
|
url = "https://example.com/events.ical";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
test.stubs = { khal = { }; };
|
|
|
|
|
|
|
|
nmt.script = ''
|
2023-08-30 09:57:47 +00:00
|
|
|
configFile=home-files/.config/khal/config
|
|
|
|
assertFileExists $configFile
|
|
|
|
assertFileContent $configFile ${./khal-config-expected}
|
2023-07-04 10:14:47 +00:00
|
|
|
'';
|
|
|
|
}
|