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, 13 insertions, 9 deletions
diff --git a/src/languages/default.nix b/src/languages/default.nix
index d030818..9853c32 100644
--- a/src/languages/default.nix
+++ b/src/languages/default.nix
@@ -1,12 +1,16 @@
-{ latex, data, lib, ... }:
-
-let
+{
+ latex,
+ data,
+ lib,
+ ...
+}: let
languages = data.languages;
- sortByProficiency = lib.sort (lang1: lang2:
- let
- prof1 = lang1.proficiency;
- prof2 = lang2.proficiency;
- in (prof2 == "basic") || (prof1 == "native")
+ sortByProficiency = lib.sort (lang1: lang2: let
+ prof1 = lang1.proficiency;
+ prof2 = lang2.proficiency;
+ in
+ (prof2 == "basic")
+ || (prof1 == "native")
|| (prof2 == "intermediate" && prof1 == "fluent"));
in {
title = "Languages";
@@ -18,5 +22,5 @@ in {
content = with latex;
for (sortByProficiency languages) (lang:
with lang;
- moderncv.cvline "${name} \\emoji{${icon.shortcode}}" proficiency);
+ moderncv.cvline "${name} \\emoji{${icon.shortcode}}" proficiency);
}