From d4ad6a7e4d44a9467627e102e98d7b44eb95ed5d Mon Sep 17 00:00:00 2001 From: ene Date: Tue, 7 Feb 2023 17:08:55 +0100 Subject: Feat(home-manger): Add grades config support --- home-manger/grades/config.yaml | 59 ++++++++++++++++++++++++++++++++++++++++++ home-manger/grades/default.nix | 7 +++++ 2 files changed, 66 insertions(+) create mode 100644 home-manger/grades/config.yaml create mode 100644 home-manger/grades/default.nix (limited to 'home-manger/grades') diff --git a/home-manger/grades/config.yaml b/home-manger/grades/config.yaml new file mode 100644 index 00000000..ebbc61f8 --- /dev/null +++ b/home-manger/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-manger/grades/default.nix b/home-manger/grades/default.nix new file mode 100644 index 00000000..8cca9640 --- /dev/null +++ b/home-manger/grades/default.nix @@ -0,0 +1,7 @@ +{config, ...}: { + home-manager.xdg.configFile."grades/config.yaml" = { + enable = true; + target = "grades/config.yaml"; + source = "./config.yaml"; + }; +} -- cgit 1.4.1