feat(home): Set sans-serif & serif fonts

This commit is contained in:
punkfairie 2025-01-11 10:57:50 -08:00
parent 41e9b57b6f
commit 6644a549d1
No known key found for this signature in database
GPG key ID: B3C5488E9A1A7CA6

View file

@ -2,9 +2,11 @@
lib, lib,
config, config,
pkgs, pkgs,
system,
... ...
}: let }: let
inherit (lib) mkEnableOption mkIf; inherit (lib) mkEnableOption mkIf;
inherit (lib.snowfall.system) is-linux;
inherit (lib.marleyos) enabled; inherit (lib.marleyos) enabled;
cfg = config.marleyos.appearance.base; cfg = config.marleyos.appearance.base;
@ -17,6 +19,8 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
# TODO: package font with harfbuzz features. # TODO: package font with harfbuzz features.
maple-mono-NF maple-mono-NF
dm-sans
eb-garamond
]; ];
rose-pine.pointerCursor = mkIf colors.isRosePine enabled; rose-pine.pointerCursor = mkIf colors.isRosePine enabled;
@ -47,9 +51,13 @@ in {
else pkgs.pinentry-curses; else pkgs.pinentry-curses;
}; };
fonts.fontconfig = { fonts.fontconfig = mkIf (is-linux system) {
enable = true; enable = true;
defaultFonts.monospace = ["Maple Mono NF"]; defaultFonts = {
monospace = ["Maple Mono NF"];
sansSerif = ["DeepMind Sans"]; # dm-sans
serif = ["EB Garamond"];
};
}; };
}; };
} }