From 6644a549d14a68ee19e4056f0262acff5154a93e Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 11 Jan 2025 10:57:50 -0800 Subject: [PATCH] feat(home): Set sans-serif & serif fonts --- modules/home/appearance/base/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/home/appearance/base/default.nix b/modules/home/appearance/base/default.nix index 3f572eb..aae0793 100644 --- a/modules/home/appearance/base/default.nix +++ b/modules/home/appearance/base/default.nix @@ -2,9 +2,11 @@ lib, config, pkgs, + system, ... }: let inherit (lib) mkEnableOption mkIf; + inherit (lib.snowfall.system) is-linux; inherit (lib.marleyos) enabled; cfg = config.marleyos.appearance.base; @@ -17,6 +19,8 @@ in { home.packages = with pkgs; [ # TODO: package font with harfbuzz features. maple-mono-NF + dm-sans + eb-garamond ]; rose-pine.pointerCursor = mkIf colors.isRosePine enabled; @@ -47,9 +51,13 @@ in { else pkgs.pinentry-curses; }; - fonts.fontconfig = { + fonts.fontconfig = mkIf (is-linux system) { enable = true; - defaultFonts.monospace = ["Maple Mono NF"]; + defaultFonts = { + monospace = ["Maple Mono NF"]; + sansSerif = ["DeepMind Sans"]; # dm-sans + serif = ["EB Garamond"]; + }; }; }; }