mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-15 17:50:53 +00:00
b01eb1eb3b
* Add infrastructure for contacts and calendars This also adds the modules - programs.vdirsyncer, - programs.khal, and - services.vdirsyncer that integrate with the new infrastructure. Co-authored-by: Andrew Scott <3648487+ayyjayess@users.noreply.github.com> Co-authored-by: Sebastian Zivota <sebastian.zivota@mailbox.org> wip * vdirsyncer: allow option userName, disallow userNameCommand 1. account option `userName` is now allowed by `programs.vdirsyncer` 2. The commented out account option `userNameCommand` was required to be set by `programs.vdirsyncer` (e.g. as `null`). It is now disallowed (commented out) by vdirsyncer. * khal: added options 'color' and 'priority' * Apply nixfmt --------- Co-authored-by: Sebastian Zivota <sebastian.zivota@mailbox.org> Co-authored-by: Johannes Rosenberger <johannes.rosenberger@jorsn.eu> Co-authored-by: Johannes Rosenberger <johannes@jorsn.eu> Co-authored-by: Robert Helgesson <robert@rycee.net>
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.khal = {
|
|
type = mkOption {
|
|
type = types.nullOr (types.enum [ "calendar" "discover" ]);
|
|
default = null;
|
|
description = ''
|
|
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.
|
|
'';
|
|
};
|
|
|
|
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.
|
|
'';
|
|
};
|
|
};
|
|
}
|