mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 02:39:45 +01:00
d579633ff9
* khal: fix contact integration - Add tests for contact+khal - Make options `color`/`priority` available for contact accounts * khal: add separate calendar for each contact collection A contact account may have multiple VCARD collections, but Khal doesn't search recursively. Collection folder names must be hardcoded, and each has its own calendar. - Add khal.collections option for contact accounts - Default to previous setup for accounts with a single collection - Add tests * khal: specify how priority is defined by Khal See https://khal.readthedocs.io/en/latest/configure.html
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ 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.
|
|
'';
|
|
};
|
|
|
|
color = mkOption {
|
|
type = types.nullOr (types.enum [
|
|
"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"
|
|
]);
|
|
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 (calendar with highest priority is preferred).
|
|
'';
|
|
};
|
|
};
|
|
}
|