summaryrefslogtreecommitdiff
path: root/src/languages
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-12-09 17:04:45 +0100
committeraristote <quentin.aristote@irif.fr>2025-12-09 17:04:45 +0100
commit76728c3faefa6791158824062401973762659fc2 (patch)
tree9a01d6ec239f39cd8cb7922b26b7931cc5a27032 /src/languages
parent142720d405ceec1d768a56b8c9273621ac967c4c (diff)
format
Diffstat (limited to 'src/languages')
-rw-r--r--src/languages/default.nix30
1 files changed, 17 insertions, 13 deletions
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
+ );
}