diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sections.nix | 23 | ||||
| -rw-r--r-- | src/service/default.nix | 33 |
2 files changed, 44 insertions, 12 deletions
diff --git a/src/sections.nix b/src/sections.nix index af01252..1c5fbd4 100644 --- a/src/sections.nix +++ b/src/sections.nix @@ -2,20 +2,19 @@ latex, make, ... -}: let +}: +let sectionTemplate = section: { inherit (section) title priority; - extraHeader = - if section ? extraHeader - then section.extraHeader - else ""; + extraHeader = if section ? extraHeader then section.extraHeader else ""; content = latex.section section.title section.content; }; - makeSection = path: sectionTemplate (make path {}); + makeSection = path: sectionTemplate (make path { }); in - builtins.map makeSection [ - ./experience - ./education - ./languages - ./research - ] +builtins.map makeSection [ + ./experience + ./education + ./service + ./languages + ./research +] diff --git a/src/service/default.nix b/src/service/default.nix new file mode 100644 index 0000000..7dd1ca8 --- /dev/null +++ b/src/service/default.nix @@ -0,0 +1,33 @@ +{ + latex, + data, + lib, + ... +}: +let + service = data.experience.service; +in +{ + title = "Academic service"; + priority = 15; + content = [ + ( + with service.reviews; + let + conferenceList = lib.concatMapAttrsStringSep "; " ( + name: years: "${name} ${lib.concatMapStringsSep ", " builtins.toString years}" + ) conferences.names; + in + "I have reviewed ${builtins.toString conferences.number} conference papers (${conferenceList})." + ) + ( + with latex; + [ "I was a teaching assistant for the following lectures:\\\\" ] + ++ for (sort.reverse.byFun (x: x.year) service.teaching) ( + item: + with item; + moderncv.cventry (builtins.toString year) name level institution (builtins.toString hours + "h") "" + ) + ) + ]; +} |
