diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 11:36:24 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 17:44:49 +0200 |
| commit | 731a43a83e2e2b61d11c5ac33fe96f92cef41bb5 (patch) | |
| tree | ea32a6c6ae5c036cab7b390543f9cb71e9444095 /src/experience/default.nix | |
initial commit
Diffstat (limited to 'src/experience/default.nix')
| -rw-r--r-- | src/experience/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/experience/default.nix b/src/experience/default.nix new file mode 100644 index 0000000..500fd9e --- /dev/null +++ b/src/experience/default.nix @@ -0,0 +1,22 @@ +{ latex, data, lib, ... }: + +let experience = data.experience; +in { + title = "Experience"; + priority = 0; + content = with latex; + for + (sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year) + experience) (item: + with item; + moderncv.cventry (latex.timerange date.start date.end) + institution.position (with institution; href url name) + institution.location (if item ? supervisors then + "supervised by " + lib.concatStringsSep " \\& " + (for supervisors (supervisor: with supervisor; href url name)) + else + "") (description + lib.optionalString (item ? assets) (" " + cite + (lib.concatStringsSep "," + (for (lib.filter (asset: asset.type == "Publications") assets) + (lib.getAttr "id")))))); +} |
