mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-13 12:31:07 +01:00
programs.khal
moved highlight_event_days where appropriated and added tests
This commit is contained in:
parent
d895a77448
commit
4a26e21030
5 changed files with 36 additions and 2 deletions
32
tests/modules/programs/khal/config.nix
Normal file
32
tests/modules/programs/khal/config.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
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
|
||||
'';
|
||||
}
|
||||
1
tests/modules/programs/khal/default.nix
Normal file
1
tests/modules/programs/khal/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ khal-config = ./config.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue