mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 19:29:47 +01:00
820be197cc
The current module constrains to values in enum but khal supports RGB colors as well khal.readthedocs.io/en/latest/configure.html#the-calendars-section ! (be careful when setting an RGB value, it has to be quoted else it is ignored, got bitten by it with a manual config ) NB: It's also not possible to set addresses khal.readthedocs.io/en/latest/configure.html#the-calendars-section
35 lines
767 B
Nix
35 lines
767 B
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).
|
|
'';
|
|
};
|
|
};
|
|
}
|