summaryrefslogtreecommitdiff
path: root/src/languages
diff options
context:
space:
mode:
Diffstat (limited to 'src/languages')
-rw-r--r--src/languages/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/languages/default.nix b/src/languages/default.nix
new file mode 100644
index 0000000..d030818
--- /dev/null
+++ b/src/languages/default.nix
@@ -0,0 +1,22 @@
+{ latex, data, lib, ... }:
+
+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 {
+ 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);
+}