mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 06:16:33 +02:00
- Add `accounts.<calendar|contact>.accounts.<name>.khal.addresses` option to enable new configuration option, "addresses", from khal, which is used for showing participation status [1]. - Remove mistaken new line in khal implementation, refer to [2]. - Make additions to the existing test case to check the new addresses feature. And remove the empty lines in expected configs. [1]: https://khal.readthedocs.io/en/latest/configure.html#the-calendars-section [2]: https://github.com/nix-community/home-manager/pull/5192#pullrequestreview-1975091763
45 lines
1.0 KiB
Nix
45 lines
1.0 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.str;
|
|
default = null;
|
|
description = ''
|
|
Color in which events in this calendar are displayed.
|
|
For instance 'light green' or an RGB color '#ff0000'
|
|
'';
|
|
example = "light green";
|
|
};
|
|
|
|
priority = mkOption {
|
|
type = types.int;
|
|
default = 10;
|
|
description = ''
|
|
Priority of a calendar used for coloring (calendar with highest priority is preferred).
|
|
'';
|
|
};
|
|
|
|
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.
|
|
'';
|
|
};
|
|
};
|
|
}
|