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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-03 17:12:42 +00:00
|
|
|
accounts.contact = {
|
|
|
|
basePath = "$XDG_CONFIG_HOME/card";
|
|
|
|
accounts = {
|
|
|
|
testcontacts = {
|
|
|
|
khal = {
|
|
|
|
enable = true;
|
|
|
|
collections = [ "default" "automaticallyCollected" ];
|
|
|
|
};
|
|
|
|
local.type = "filesystem";
|
|
|
|
local.fileExt = ".vcf";
|
|
|
|
name = "testcontacts";
|
|
|
|
remote = {
|
|
|
|
type = "http";
|
|
|
|
url = "https://example.com/contacts.vcf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testcontactsNoCollections = {
|
|
|
|
khal.enable = true;
|
|
|
|
local.type = "filesystem";
|
|
|
|
local.fileExt = ".vcf";
|
|
|
|
name = "testcontactsNoCollections";
|
|
|
|
remote = {
|
|
|
|
type = "http";
|
|
|
|
url = "https://example.com/contacts.vcf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-04 10:14:47 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
}
|