From 76728c3faefa6791158824062401973762659fc2 Mon Sep 17 00:00:00 2001 From: aristote Date: Tue, 9 Dec 2025 17:04:45 +0100 Subject: format --- src/languages/default.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'src/languages/default.nix') diff --git a/src/languages/default.nix b/src/languages/default.nix index 9853c32..b00efc6 100644 --- a/src/languages/default.nix +++ b/src/languages/default.nix @@ -3,24 +3,28 @@ data, lib, ... -}: let +}: +let languages = data.languages; - sortByProficiency = lib.sort (lang1: lang2: let - prof1 = lang1.proficiency; - prof2 = lang2.proficiency; - in - (prof2 == "basic") - || (prof1 == "native") - || (prof2 == "intermediate" && prof1 == "fluent")); -in { + sortByProficiency = lib.sort ( + lang1: lang2: + let + prof1 = lang1.proficiency; + prof2 = lang2.proficiency; + in + (prof2 == "basic") || (prof1 == "native") || (prof2 == "intermediate" && prof1 == "fluent") + ); +in +{ title = "Languages"; priority = 20; extraHeader = '' \usepackage{emoji} \setemojifont{NotoColorEmoji.ttf}[Path=./fonts/] ''; - content = with latex; - for (sortByProficiency languages) (lang: - with lang; - moderncv.cvline "${name} \\emoji{${icon.shortcode}}" proficiency); + content = + with latex; + for (sortByProficiency languages) ( + lang: with lang; moderncv.cvline "${name} \\emoji{${icon.shortcode}}" proficiency + ); } -- cgit v1.2.3