This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
forked from styx-static/styx-theme-generic-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.nix
120 lines (106 loc) · 3.08 KB
/
conf.nix
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{ lib }:
with lib;
{
/* Javascript and CSS Libraries using CDN
*/
lib = {
# using https://www.bootstrapcdn.com/
bootstrap = {
enable = mkEnableOption "bootstrap";
version = mkOption {
default = "3.3.7";
description = "Selects bootstrap version to use.";
type = types.string;
};
};
# using http://code.jquery.com/
jquery = {
enable = mkEnableOption "jQuery";
version = mkOption {
default = "3.1.1";
description = "Selects jQuery version to use.";
type = types.string;
};
};
# font awesome
font-awesome = {
enable = mkEnableOption "font awesome";
version = mkOption {
default = "4.7.0";
description = "Selects font-awesome version to use.";
type = types.string;
};
};
highlightjs = {
enable = mkEnableOption "highlightjs";
version = mkOption {
default = "9.9.0";
description = "Selects highlightjs version to use.";
type = types.string;
};
style = mkOption {
default = "default";
description = "Style used by highlight.js, for available styles see https://highlightjs.org/static/demo/.";
example = "agate";
type = types.string;
};
extraLanguages = mkOption {
default = [];
description = "Extra languages to highlight, for available languages see https://highlightjs.org/static/demo/.";
example = [ "nix" ];
type = with types; listOf str;
};
};
googlefonts = mkOption {
description = "Google Fonts to load, for available fonts see https://fonts.google.com/.";
type = with types; listOf str;
default = [];
example = [ "Barrio" "Fjalla One" ];
};
mathjax = {
enable = mkEnableOption "mathjax";
};
};
site.title = mkOption {
description = "Site title.";
type = types.str;
default = "Generic Templates";
};
html = {
doctype = mkOption {
description = "Doctype declaration to use.";
type = types.enum [ "html5" "html4" "xhtml1" ];
default = "html5";
};
lang = mkOption {
description = "An ISO 639-1 language code to set to the `html` tag.";
type = types.str;
default = "en";
};
};
services = {
google-analytics.trackingID = mkOption {
description = "Google analytics service tracker ID, Google analytics is disabled if set to null.";
type = with types; nullOr str;
default = null;
};
piwik = {
enable = mkEnableOption "Piwik";
url = mkOption {
description = "Piwik url.";
type = types.str;
default = "";
};
IDsite = mkOption {
description = "idsite of the website you are tracking in Piwik.";
type = types.str;
default = "";
};
};
disqus.shortname = mkOption {
description = "Disqus service shortname. See link:https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-[What's a shortname?] page for details.";
type = with types; nullOr str;
default = null;
};
};
}