summaryrefslogtreecommitdiff
path: root/src/default.nix
blob: cd5c9cf9bd7d59b7e01c87beaa5ae67744cefe0e (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
{
  latex,
  data,
  make,
  ...
}:
with latex;
let
  sections = make ./sections.nix { };
in
with data.basics;
lines [
  (builtins.readFile ./header.tex)
  (comment "-------------------- EXTRA --------------------")
  (for sections (section: section.extraHeader))
  (comment "-------------------- DATA --------------------")
  (moderncv.name name.first name.last)
  (moderncv.email email.personal)
  (moderncv.extrainfo (latex.url url))
  (moderncv.photo { "" = "128pt"; } avatar)
  ""
  (document [
    (title institution.position)
    moderncv.makecvtitle
    description
    (for sections (section: section.content))
  ])
]