about summary refs log tree commit diff
path: root/modules/common/fonts.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/common/fonts.nix
parent2024-03-01 (diff)
2024-03-02
Diffstat (limited to '')
-rw-r--r--modules/common/fonts.nix95
1 files changed, 0 insertions, 95 deletions
diff --git a/modules/common/fonts.nix b/modules/common/fonts.nix
deleted file mode 100644
index 6bd3e71..0000000
--- a/modules/common/fonts.nix
+++ /dev/null
@@ -1,95 +0,0 @@
-{
-  lib,
-  pkgs,
-  ...
-}:
-with lib; {
-  imports = [
-    (mkAliasOptionModule ["fontScheme"] [
-      "nixfiles"
-      "modules"
-      "fonts"
-      "fontScheme"
-    ])
-  ];
-
-  options.nixfiles.modules.fonts = {
-    enable = mkEnableOption "fonts and their configurations";
-
-    packages = mkOption {
-      description = "Font packages to install.";
-      type = with types; listOf package;
-      default = with pkgs; [
-        (iosevka-bin.override {variant = "aile";})
-        (iosevka-bin.override {variant = "etoile";})
-        iosevka-bin
-        sarasa-gothic
-        source-han-mono
-        source-han-sans
-        source-han-serif
-        noto-fonts
-        font-awesome
-      ];
-    };
-
-    fontScheme = let
-      mkFont = {
-        family,
-        style,
-        size,
-      }: {
-        family = mkOption {
-          description = "Family of the font.";
-          type = types.str;
-          default = family;
-        };
-        style = mkOption {
-          description = "Style of the font.";
-          type = types.str;
-          default = style;
-        };
-        size = mkOption {
-          description = "Size of the font.";
-          type = types.int;
-          default = size;
-        };
-      };
-    in {
-      serifFont = mkFont {
-        family = "Iosevka Etoile";
-        style = "Regular";
-        size = 14;
-      };
-
-      serifFontFallback = mkFont {
-        family = "Sarasa Gothic J";
-        style = "Regular";
-        size = 14;
-      };
-
-      sansSerifFont = mkFont {
-        family = "Iosevka Aile";
-        style = "Regular";
-        size = 14;
-      };
-
-      sansSerifFontFallback = mkFont {
-        family = "Sarasa Gothic J";
-        style = "Regular";
-        size = 14;
-      };
-
-      monospaceFont = mkFont {
-        family = "Iosevka";
-        style = "Regular";
-        size = 14;
-      };
-
-      monospaceFontFallback = mkFont {
-        family = "Sarasa Mono J";
-        style = "Regular";
-        size = 14;
-      };
-    };
-  };
-}

Consider giving Nix/NixOS a try! <3