From 031c27317d63a98bb9896a4baa9b19c155ac62a9 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 30 Jul 2023 20:06:40 +0300 Subject: 2023-07-30 --- modules/nixos/fonts.nix | 52 ++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 24 deletions(-) (limited to 'modules/nixos') 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" + ]; + }; }; }; }) -- cgit 1.4.1