summaryrefslogtreecommitdiff
path: root/src/default.nix
blob: 421367ba175d4de4203e3bdf3d49e9d7ec2c242c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ latex, data, make, ... }:

with latex;
let sections = sort.byKey "priority" (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))
  ])
]