From 76728c3faefa6791158824062401973762659fc2 Mon Sep 17 00:00:00 2001 From: aristote Date: Tue, 9 Dec 2025 17:04:45 +0100 Subject: format --- src/experience/default.nix | 49 +++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 20 deletions(-) (limited to 'src/experience') diff --git a/src/experience/default.nix b/src/experience/default.nix index cf4dc5f..cf025bb 100644 --- a/src/experience/default.nix +++ b/src/experience/default.nix @@ -3,29 +3,38 @@ data, lib, ... -}: let +}: +let experience = data.experience.jobs; -in { +in +{ title = "Experience"; priority = 0; - content = with latex; - for - (sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year) - experience) (item: + 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 + 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 == "Writings") assets) - (lib.getAttr "id")))))); + + 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 == "Writings") assets) (lib.getAttr "id") + ) + ) + ) + ) + ); } -- cgit v1.2.3