From 731a43a83e2e2b61d11c5ac33fe96f92cef41bb5 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Mon, 21 Aug 2023 11:36:24 +0200 Subject: initial commit --- src/sections.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/sections.nix (limited to 'src/sections.nix') diff --git a/src/sections.nix b/src/sections.nix new file mode 100644 index 0000000..faed484 --- /dev/null +++ b/src/sections.nix @@ -0,0 +1,15 @@ +{ latex, make, ... }: + +let + sectionTemplate = section: { + inherit (section) title priority; + extraHeader = if section ? extraHeader then section.extraHeader else ""; + content = latex.section section.title section.content; + }; + makeSection = path: sectionTemplate (make path { }); +in builtins.map makeSection [ + ./experience + ./education + ./languages + ./publications +] -- cgit v1.2.3