about summary refs log tree commit diff
path: root/modules/nixos/common/stylix.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-03-02 20:30:02 +0300
committerAzat Bahawi <azat@bahawi.net>2024-03-02 20:30:02 +0300
commit482bcef47a3b7ee63553c58d200065857ec42b1c (patch)
treeface7032b62c8957df4a84b2fc0c4adc47020f9e /modules/nixos/common/stylix.nix
parent2024-03-01 (diff)
2024-03-02
Diffstat (limited to '')
-rw-r--r--modules/nixos/common/stylix.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/nixos/common/stylix.nix b/modules/nixos/common/stylix.nix
new file mode 100644
index 0000000..6249abf
--- /dev/null
+++ b/modules/nixos/common/stylix.nix
@@ -0,0 +1,37 @@
+{
+  config,
+  inputs,
+  lib,
+  ...
+}:
+with lib; {
+  imports = [inputs.stylix.nixosModules.stylix];
+
+  fonts = {
+    packages = mkAfter config.nixfiles.modules.common.stylix.fonts.extraPackages;
+
+    fontconfig.defaultFonts = {
+      serif = mkForce [
+        "Iosevka Etoile"
+        "Sarasa Gothic"
+        "Source Han Serif"
+        "Noto Serif"
+      ];
+      sansSerif = mkForce [
+        "Iosevka Aile"
+        "Sarasa Gothic"
+        "Source Han Sans"
+        "Noto Sans"
+      ];
+      monospace = mkForce [
+        "Iosevka"
+        "Sarasa Mono"
+        "Source Han Mono"
+        "Noto Sans Mono"
+      ];
+      emoji = mkForce [
+        "Noto Color Emoji"
+      ];
+    };
+  };
+}

Consider giving Nix/NixOS a try! <3