mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
4a26e21030
moved highlight_event_days where appropriated and added tests
32 lines
636 B
Nix
32 lines
636 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs.khal.enable = true;
|
|
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 = ''
|
|
assertFileExists home-files/.config/khal/config
|
|
'';
|
|
}
|