From 01123862c6bd3ef3c5b9d732f63670d7fb1cfefa Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 17 Sep 2023 20:17:50 +0200 Subject: reformat --- src/sections.nix | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'src/sections.nix') diff --git a/src/sections.nix b/src/sections.nix index faed484..2778beb 100644 --- a/src/sections.nix +++ b/src/sections.nix @@ -1,15 +1,21 @@ -{ latex, make, ... }: - -let +{ + latex, + make, + ... +}: 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 { }); -in builtins.map makeSection [ - ./experience - ./education - ./languages - ./publications -] + makeSection = path: sectionTemplate (make path {}); +in + builtins.map makeSection [ + ./experience + ./education + ./languages + ./publications + ] -- cgit v1.2.3