about summary refs log tree commit diff stats
path: root/home-manager/config/grades
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/config/grades')
-rw-r--r--home-manager/config/grades/config.yaml59
-rw-r--r--home-manager/config/grades/default.nix3
2 files changed, 62 insertions, 0 deletions
diff --git a/home-manager/config/grades/config.yaml b/home-manager/config/grades/config.yaml
new file mode 100644
index 00000000..ebbc61f8
--- /dev/null
+++ b/home-manager/config/grades/config.yaml
@@ -0,0 +1,59 @@
+---
+# The unit of your grades.
+# This can also be specified
+# on a per grade basis on the command line
+unit: Punkte
+
+# List of the possible grade groups
+#
+# name:
+# This is the name used below
+#
+# weight:
+# This is the weight applied to all grades form the group
+# when calculation the average (see https://en.wikipedia.org//wiki/Weighted_arithmetic_mean for a explanation).
+grade_groups:
+  - name: major
+    weight: '2'
+  - name: minor
+    weight: '1'
+
+# List of the types of grades.
+#
+# name:
+# This is the name used on the command line.
+# NB: The name is case sensitive.
+#
+# group:
+# This is used when calculating the average, to group multiple types together.
+# You might want to use separate types to keep grades ordered,
+# but calculate their average as one.
+# The value is one of the names you declared in the grade_group section.
+grade_types:
+  - name: graded-homework
+    group: minor
+  - name: exam
+    group: major
+  - name: oral-mark
+    group: minor
+
+# List of the types of Classes
+#
+# name:
+# The name used below
+class_types:
+  - name: subsidiary-subject
+  - name: intensified-course
+
+# List of classes
+#
+# name:
+# The name used on the cli
+#
+# class_type:
+# The name of the class type you declared above
+classes:
+  - name: Math
+    class_type: intensified-course2
+  - name: English
+    class_type: subsidiary-subject
diff --git a/home-manager/config/grades/default.nix b/home-manager/config/grades/default.nix
new file mode 100644
index 00000000..22c5a6d4
--- /dev/null
+++ b/home-manager/config/grades/default.nix
@@ -0,0 +1,3 @@
+{config, ...}: {
+  xdg.configFile."grades/config.yaml".source = ./config.yaml;
+}