2023-06-12 21:21:24 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options.khal = {
|
|
|
|
enable = lib.mkEnableOption "khal access";
|
|
|
|
|
|
|
|
readOnly = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Keep khal from making any changes to this account.
|
|
|
|
'';
|
|
|
|
};
|
2024-03-03 17:12:42 +00:00
|
|
|
|
|
|
|
color = mkOption {
|
2024-03-31 20:06:56 +00:00
|
|
|
type = types.nullOr types.str;
|
2024-03-03 17:12:42 +00:00
|
|
|
default = null;
|
|
|
|
description = ''
|
|
|
|
Color in which events in this calendar are displayed.
|
2024-03-31 20:06:56 +00:00
|
|
|
For instance 'light green' or an RGB color '#ff0000'
|
2024-03-03 17:12:42 +00:00
|
|
|
'';
|
|
|
|
example = "light green";
|
|
|
|
};
|
|
|
|
|
|
|
|
priority = mkOption {
|
|
|
|
type = types.int;
|
|
|
|
default = 10;
|
|
|
|
description = ''
|
|
|
|
Priority of a calendar used for coloring (calendar with highest priority is preferred).
|
|
|
|
'';
|
|
|
|
};
|
2024-04-05 11:48:20 +00:00
|
|
|
|
|
|
|
addresses = mkOption {
|
|
|
|
type = types.listOf types.str;
|
|
|
|
default = [ ];
|
|
|
|
description = ''
|
|
|
|
Email addresses to be associated with this account. Used to check the
|
|
|
|
participation status ("PARTSTAT"), refer to khal documentation.
|
|
|
|
'';
|
|
|
|
};
|
2023-06-12 21:21:24 +00:00
|
|
|
};
|
|
|
|
}
|