2023-08-08 10:19:01 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.khal = {
|
|
|
|
type = mkOption {
|
2024-06-04 18:23:39 +00:00
|
|
|
type = types.enum [ "calendar" "discover" ];
|
|
|
|
default = "calendar";
|
2023-08-08 10:19:01 +00:00
|
|
|
description = ''
|
|
|
|
Either a single calendar (calendar which is the default) or a directory with multiple calendars (discover).
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
glob = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "*";
|
|
|
|
description = ''
|
|
|
|
The glob expansion to be searched for events or birthdays when
|
|
|
|
type is set to discover.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|