blob: 0e1f0be0880c23d3d6516f2e0885e95427ed0d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ config, lib, pkgs, ... }:
let
cfg = config.modules.scheme;
hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}'';
hexColor = {
type = lib.types.strMatching hexColorRegex;
};
in
{
options.modules.scheme = {
name = lib.mkOption {
type = lib.types.str;
description = "scheme name";
example = "base16-default-dark";
};
light = lib.mkOption {
type = lib.types.uniq lib.types.bool;
default = false;
description = "whether this is a light colorscheme";
};
extraVimConfig = lib.mkOption {
type = lib.types.str;
default = "";
description = ''
extra vimscript config for the theme.
Intended use is to set extra highlights.
'';
};
base00 = lib.mkOption hexColor;
base01 = lib.mkOption hexColor;
base02 = lib.mkOption hexColor;
base03 = lib.mkOption hexColor;
base04 = lib.mkOption hexColor;
base05 = lib.mkOption hexColor;
base06 = lib.mkOption hexColor;
base07 = lib.mkOption hexColor;
base08 = lib.mkOption hexColor;
base09 = lib.mkOption hexColor;
base0A = lib.mkOption hexColor;
base0B = lib.mkOption hexColor;
base0C = lib.mkOption hexColor;
base0D = lib.mkOption hexColor;
base0E = lib.mkOption hexColor;
base0F = lib.mkOption hexColor;
};
# config = lib.mkIf cfg.enable {
# };
}
|