mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 10:33:25 +00:00
42 lines
917 B
Nix
42 lines
917 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs.khal = {
|
|
enable = true;
|
|
settings = {
|
|
default.timedelta = "5d";
|
|
view.agenda_event_format =
|
|
"{calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{reset}";
|
|
};
|
|
|
|
};
|
|
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 = ''
|
|
configFile=home-files/.config/khal/config
|
|
assertFileExists $configFile
|
|
assertFileContent $configFile ${./khal-config-expected}
|
|
'';
|
|
}
|