about summary refs log tree commit diff
path: root/modules/nixos
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-07-30 20:06:40 +0300
committerAzat Bahawi <azat@bahawi.net>2023-07-30 20:06:40 +0300
commit031c27317d63a98bb9896a4baa9b19c155ac62a9 (patch)
tree3051b34857540420f4142e0b8360038cc609ea13 /modules/nixos
parent2023-07-30 (diff)
2023-07-30
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/fonts.nix52
1 files changed, 28 insertions, 24 deletions
diff --git a/modules/nixos/fonts.nix b/modules/nixos/fonts.nix
index d4a7330..f11a27d 100644
--- a/modules/nixos/fonts.nix
+++ b/modules/nixos/fonts.nix
@@ -9,31 +9,35 @@ in {
   config = mkMerge [
     (mkIf cfg.enable {
       hm.fonts.fontconfig.enable = true;
-      fonts.fontconfig = {
-        enable = true;
+      fonts = {
+        inherit (cfg) packages;
 
-        defaultFonts = {
-          monospace = [
-            "Iosevka"
-            "Sarasa Mono K"
-            "Sarasa Mono J"
-            "Sarasa Mono SC"
-            "Sarasa Mono CL"
-          ];
-          sansSerif = [
-            "Iosevka Aile"
-            "Sarasa Gothic K"
-            "Sarasa Gothic J"
-            "Sarasa Gothic SC"
-            "Sarasa Gothic CL"
-          ];
-          serif = [
-            "Iosevka Etoile"
-            "Sarasa Gothic K"
-            "Sarasa Gothic J"
-            "Sarasa Gothic SC"
-            "Sarasa Gothic CL"
-          ];
+        fontconfig = {
+          enable = true;
+
+          defaultFonts = {
+            monospace = [
+              "Iosevka"
+              "Sarasa Mono K"
+              "Sarasa Mono J"
+              "Sarasa Mono SC"
+              "Sarasa Mono CL"
+            ];
+            sansSerif = [
+              "Iosevka Aile"
+              "Sarasa Gothic K"
+              "Sarasa Gothic J"
+              "Sarasa Gothic SC"
+              "Sarasa Gothic CL"
+            ];
+            serif = [
+              "Iosevka Etoile"
+              "Sarasa Gothic K"
+              "Sarasa Gothic J"
+              "Sarasa Gothic SC"
+              "Sarasa Gothic CL"
+            ];
+          };
         };
       };
     })

Consider giving Nix/NixOS a try! <3