This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
forked from styx-static/styx-theme-orbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.nix
240 lines (224 loc) · 5.59 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
{ lib }:
with lib;
{
/* General settings
*/
site = {
title = mkOption {
default = "Orbit theme";
type = types.str;
description = "Title of the site.";
};
author = mkOption {
default = "John Doe";
type = types.str;
description = "Content of the author `meta` tag.";
};
description = mkOption {
default = "Lorem ipsum...";
type = types.str;
description = "Content of the description `meta` tag.";
};
};
colorScheme = mkOption {
default = 1;
type = types.enum [ 1 2 3 4 5 6 ];
description = "Theme color scheme.";
};
copyright = mkOption {
default = "copyright";
type = types.str;
description = "Footer copyright text.";
};
profile = mkOption {
description = "Profile information, must have `name`, `tagline` and `image` attributes.";
type = types.attrs;
default = {
name = "John Doe";
tagline = "Full Stack Developer";
image = "/assets/images/profile.png";
};
};
/* Main contents
*/
summary = {
title = mkOption {
description = "Title of the summary section";
default = "Career profile";
type = types.str;
};
icon = mkOption {
description = "Code of the font awesome icon of the summary title.";
default = "user";
type = types.str;
};
content = mkOption {
description = ''
content of the profile area as HTML text.
'';
default = null;
type = with types; nullOr str;
};
};
/* Experiences
*/
experiences = {
title = mkOption {
description = "Title of the experiences section";
default = "Experiences";
type = types.str;
};
icon = mkOption {
description = "Code of the font awesome icon of the experience title.";
default = "briefcase";
type = types.str;
};
items = mkOption {
description = ''
List of experiences as attribute sets, requires `position`, `dates`, `company` and `content`.
'';
type = with types; listOf attrs;
default = [];
example = [ {
position = "Lead Developer";
dates = "2015 - Present";
company = "Startup Hubs, San Francisco";
content = "lorem ipsum";
} ];
};
};
/* Projects
*/
projects = {
title = mkOption {
description = "Title of the projects section";
default = "Projects";
type = types.str;
};
icon = mkOption {
description = "Code of the font awesome icon of the projects title.";
default = "archive";
type = types.str;
};
items = mkOption {
description = ''
List of projects as attribute sets, requires `title`, `url` and `content`.
'';
type = with types; listOf attrs;
default = [];
example = [ {
title = "Simple FAQ Theme for Hugo";
url = "https://github.com/aerohub/hugo-faq-theme";
content = "lorem ipsum";
} ];
};
};
/* Skills
*/
skills = {
title = mkOption {
description = "Title of the skills section.";
default = "Skills & Proficiency";
type = types.str;
};
icon = mkOption {
description = "Code of the font awesome icon of the skills title.";
default = "rocket";
type = types.str;
};
items = mkOption {
description = ''
List of skills as attribute sets, requires `title` and `level`.
'';
type = with types; listOf attrs;
default = [];
example = [
{ skill = "Python & Django";
level = "98%"; }
{ skill = "Javascript & jQuery";
level = "50%"; }
];
};
};
/* Sidebar contents
*/
contact = {
items = mkOption {
description = ''
List of contact link as attribute sets, requires `type`, `icon`, `url` and `title`.
'';
type = with types; listOf attrs;
default = [];
example = [ {
type = "email";
icon = "envelope";
url = "mailto: [email protected]";
title = "[email protected]";
} ];
};
};
education = {
title = mkOption {
description = "Title of the education section.";
default = "Education";
type = types.str;
};
items = mkOption {
description = ''
List of education items as attribute sets, requires `degree`, `college` and `dates`.
'';
type = with types; listOf attrs;
default = [];
example = [
{ degree = "MSc in Computer Science";
college = "University of London";
dates = "2006 - 2010"; }
];
};
};
languages = {
title = mkOption {
description = "Title of the languages section.";
default = "Languages";
type = types.str;
};
items = mkOption {
description = ''
List of languages as attribute sets, requires `language`, and `level`.
'';
type = with types; listOf attrs;
default = [];
example = [
{ language = "English";
level = "Native"; }
];
};
};
interests = {
title = mkOption {
description = "Title of the interests section.";
default = "Interests";
type = types.str;
};
items = mkOption {
description = ''
List of interests.
'';
type = with types; listOf str;
default = [];
example = [
"Climbing"
"Snowboarding"
"Cooking"
];
};
};
/* Defaults
*/
lib.jquery.enable = true;
lib.bootstrap.enable = true;
lib.font-awesome.enable = true;
lib.googlefonts = [
"Roboto:400,500,400italic,300italic,300,500italic,700,700italic,900,900italic"
];
}