about summary refs log tree commit diff
path: root/modules/nixos/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/nixos/fonts.nix
parent2024-03-01 (diff)
2024-03-02
Diffstat (limited to '')
-rw-r--r--modules/nixos/fonts.nix78
1 files changed, 0 insertions, 78 deletions
diff --git a/modules/nixos/fonts.nix b/modules/nixos/fonts.nix
deleted file mode 100644
index a333cb3..0000000
--- a/modules/nixos/fonts.nix
+++ /dev/null
@@ -1,78 +0,0 @@
-{
-  config,
-  lib,
-  pkgs,
-  ...
-}:
-with lib; let
-  cfg = config.nixfiles.modules.fonts;
-in {
-  config = mkMerge [
-    (mkIf cfg.enable {
-      nixfiles.modules.common.nix.allowedUnfreePackages = ["symbola"];
-      hm.fonts.fontconfig.enable = true;
-      fonts = {
-        packages =
-          cfg.packages
-          ++ (with pkgs; [
-            noto-fonts-emoji
-            twitter-color-emoji
-            symbola
-          ]);
-
-        fontconfig = {
-          enable = true;
-
-          defaultFonts = {
-            emoji = mkForce [
-              "Twitter Color Emoji"
-              "Noto Color Emoji"
-              "Symbola"
-            ];
-            monospace = mkForce [
-              "Iosevka"
-              "Sarasa Mono"
-              "Source Han Mono"
-              "Noto Sans Mono"
-            ];
-            sansSerif = mkForce [
-              "Iosevka Aile"
-              "Sarasa Gothic"
-              "Source Han Sans"
-              "Noto Sans"
-            ];
-            serif = mkForce [
-              "Iosevka Etoile"
-              "Sarasa Gothic"
-              "Source Han Serif"
-              "Noto Serif"
-            ];
-          };
-
-          localConf = ''
-            <?xml version='1.0'?>
-            <!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
-            <fontconfig>
-              <alias binding="same">
-                <family>Helvetica</family>
-                <prefer>
-                  <family>sans-serif</family>
-                </prefer>
-              </alias>
-              <alias binding="same">
-                <family>Arial</family>
-                <prefer>
-                  <family>sans-serif</family>
-                </prefer>
-              </alias>
-            </fontconfig>
-          '';
-        };
-      };
-    })
-    (mkIf (!cfg.enable) {
-      hm.fonts.fontconfig.enable = false;
-      fonts.fontconfig.enable = false;
-    })
-  ];
-}

Consider giving Nix/NixOS a try! <3