fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Daniel Siepmannkhal: improve module (#4088)ea2f1761

master
1.2 KiB58 linesraw
1{ config, lib, ... }:
2
3with lib;
4
5{
6  options.khal = {
7    type = mkOption {
8      type = types.nullOr (types.enum [ "calendar" "discover" ]);
9      default = null;
10      description = ''
11        Either a single calendar (calendar which is the default) or a directory with multiple calendars (discover).
12      '';
13    };
14
15    glob = mkOption {
16      type = types.str;
17      default = "*";
18      description = ''
19        The glob expansion to be searched for events or birthdays when
20        type is set to discover.
21      '';
22    };
23
24    color = mkOption {
25      type = types.nullOr (types.enum [
26        "black"
27        "white"
28        "brown"
29        "yellow"
30        "dark gray"
31        "dark green"
32        "dark blue"
33        "light gray"
34        "light green"
35        "light blue"
36        "dark magenta"
37        "dark cyan"
38        "dark red"
39        "light magenta"
40        "light cyan"
41        "light red"
42      ]);
43      default = null;
44      description = ''
45        Color in which events in this calendar are displayed.
46      '';
47      example = "light green";
48    };
49
50    priority = mkOption {
51      type = types.int;
52      default = 10;
53      description = ''
54        Priority of a calendar used for coloring.
55      '';
56    };
57  };
58}