2019-04-07 13:21:23 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.khal = {
|
|
|
|
type = mkOption {
|
2020-04-26 15:40:37 +02:00
|
|
|
type = types.nullOr (types.enum [ "calendar" "discover" ]);
|
2019-07-10 01:52:36 +02:00
|
|
|
default = null;
|
2019-04-07 13:21:23 +02:00
|
|
|
description = ''
|
2019-07-10 01:52:36 +02:00
|
|
|
There is no description of this option.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
glob = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "*";
|
|
|
|
description = ''
|
|
|
|
The glob expansion to be searched for events or birthdays when
|
|
|
|
type is set to discover.
|
2019-04-07 13:21:23 +02:00
|
|
|
'';
|
|
|
|
};
|
2019-07-29 18:00:52 +02:00
|
|
|
|
|
|
|
color = mkOption {
|
|
|
|
type = types.nullOr (types.enum [
|
2020-04-26 15:40:37 +02:00
|
|
|
"black"
|
|
|
|
"white"
|
|
|
|
"brown"
|
|
|
|
"yellow"
|
|
|
|
"dark gray"
|
|
|
|
"dark green"
|
|
|
|
"dark blue"
|
|
|
|
"light gray"
|
|
|
|
"light green"
|
|
|
|
"light blue"
|
|
|
|
"dark magenta"
|
|
|
|
"dark cyan"
|
|
|
|
"dark red"
|
|
|
|
"light magenta"
|
|
|
|
"light cyan"
|
|
|
|
"light red"
|
2019-07-29 18:00:52 +02:00
|
|
|
]);
|
|
|
|
default = null;
|
|
|
|
description = ''
|
|
|
|
Color in which events in this calendar are displayed.
|
|
|
|
'';
|
|
|
|
example = "light green";
|
|
|
|
};
|
|
|
|
|
|
|
|
priority = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 10;
|
|
|
|
description = ''
|
|
|
|
Priority of a calendar used for coloring.
|
|
|
|
'';
|
|
|
|
};
|
2019-04-07 13:21:23 +02:00
|
|
|
};
|
|
|
|
}
|