diff options
author | ene <ene@sils.li> | 2023-02-07 17:08:55 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-07 17:08:55 +0100 |
commit | d4ad6a7e4d44a9467627e102e98d7b44eb95ed5d (patch) | |
tree | 407bfe405b80deb3eeb0869c4db9cbf79ce8dc20 /home-manger/grades | |
parent | Feat(home-manager): Add git support (diff) | |
download | nixos-config-d4ad6a7e4d44a9467627e102e98d7b44eb95ed5d.tar.gz nixos-config-d4ad6a7e4d44a9467627e102e98d7b44eb95ed5d.zip |
Feat(home-manger): Add grades config support
Diffstat (limited to 'home-manger/grades')
-rw-r--r-- | home-manger/grades/config.yaml | 59 | ||||
-rw-r--r-- | home-manger/grades/default.nix | 7 |
2 files changed, 66 insertions, 0 deletions
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"; + }; +} |