From 303b8e2ed8b836858b4dc6ca2210178ace9c6b6f Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 9 Nov 2023 03:00:14 +0300 Subject: 2023-11-09 --- modules/nixos/fonts.nix | 55 +++++++++++++++++++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 16 deletions(-) (limited to 'modules/nixos/fonts.nix') diff --git a/modules/nixos/fonts.nix b/modules/nixos/fonts.nix index f11a27d..f9624ec 100644 --- a/modules/nixos/fonts.nix +++ b/modules/nixos/fonts.nix @@ -1,6 +1,7 @@ { config, lib, + pkgs, ... }: with lib; let @@ -8,36 +9,58 @@ with lib; let in { config = mkMerge [ (mkIf cfg.enable { + nixfiles.modules.common.nix.allowedUnfreePackages = ["symbola"]; hm.fonts.fontconfig.enable = true; fonts = { - inherit (cfg) packages; + packages = cfg.packages ++ [pkgs.symbola]; fontconfig = { enable = true; defaultFonts = { - monospace = [ + emoji = mkForce [ + "Twitter Color Emoji" + "Noto Color Emoji" + "Symbola" + ]; + monospace = mkForce [ "Iosevka" - "Sarasa Mono K" - "Sarasa Mono J" - "Sarasa Mono SC" - "Sarasa Mono CL" + "Sarasa Mono" + "Source Han Mono" + "Noto Sans Mono" ]; - sansSerif = [ + sansSerif = mkForce [ "Iosevka Aile" - "Sarasa Gothic K" - "Sarasa Gothic J" - "Sarasa Gothic SC" - "Sarasa Gothic CL" + "Sarasa Gothic" + "Source Han Sans" + "Noto Sans" ]; - serif = [ + serif = mkForce [ "Iosevka Etoile" - "Sarasa Gothic K" - "Sarasa Gothic J" - "Sarasa Gothic SC" - "Sarasa Gothic CL" + "Sarasa Gothic" + "Source Han Serif" + "Noto Serif" ]; }; + + localConf = '' + + + + + Helvetica + + sans-serif + + + + Arial + + sans-serif + + + + ''; }; }; }) -- cgit 1.4.1