1
1
Fork 0

fonts: update to nerd-fonts namespace

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-07 22:06:49 -06:00
parent cac626eee7
commit 5cb1858b25
Signed by: myned
GPG key ID: C7224454F7881A34
3 changed files with 35 additions and 25 deletions

View file

@ -40,7 +40,7 @@ in {
font = { font = {
emoji = mkOption {default = "Noto Color Emoji";}; emoji = mkOption {default = "Noto Color Emoji";};
monospace = mkOption {default = "Iosevka NFP SemiBold";}; monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};
sans-serif = mkOption {default = "Outfit";}; sans-serif = mkOption {default = "Outfit";};
serif = mkOption {default = "Liberation Serif";}; serif = mkOption {default = "Liberation Serif";};
}; };

View file

@ -26,7 +26,7 @@ in {
device_battery = "gamepad,mouse"; device_battery = "gamepad,mouse";
dynamic_frame_timing = true; dynamic_frame_timing = true;
engine_color = "dc322f"; engine_color = "dc322f";
font_file = "${(pkgs.nerdfonts.override {fonts = ["Iosevka"];})}/share/fonts/truetype/NerdFonts/IosevkaNerdFontPropo-SemiBold.ttf"; font_file = "${pkgs.nerd-fonts.iosevka}/share/fonts/truetype/NerdFonts/IosevkaTermSlabNerdFontPropo-Medium.ttf";
font_size = 24; font_size = 24;
fps_limit = "100,75,60,50"; # !! Monitor dependent fps_limit = "100,75,60,50"; # !! Monitor dependent
fps_limit_method = "early"; # Smoother frametimes compared to late fps_limit_method = "early"; # Smoother frametimes compared to late

View file

@ -14,11 +14,21 @@ in {
fonts = { fonts = {
enableDefaultPackages = true; # Fallback fonts enableDefaultPackages = true; # Fallback fonts
packages = with pkgs; [ packages = with pkgs.nerd-fonts;
# Monospace [
(nerdfonts.override {fonts = ["Iosevka"];}) ### Monospace
# https://www.nerdfonts.com/#home
# Sans Serif #?? kitten choose-fonts
departure-mono
gohufont
iosevka-term
iosevka-term-slab
jetbrains-mono
space-mono
zed-mono
]
++ (with pkgs; [
### Sans Serif
(google-fonts.override { (google-fonts.override {
fonts = [ fonts = [
# Text # Text
@ -34,10 +44,11 @@ in {
]; ];
}) })
### Other
# Microsoft # Microsoft
corefonts corefonts
vistafonts vistafonts
]; ]);
#?? fc-list --brief | grep family: | sort #?? fc-list --brief | grep family: | sort
fontconfig.defaultFonts = { fontconfig.defaultFonts = {
@ -48,7 +59,6 @@ in {
}; };
}; };
home-manager.users.${config.custom.username}.fonts.fontconfig.defaultFonts = home-manager.users.${config.custom.username}.fonts.fontconfig.defaultFonts = config.fonts.fontconfig.defaultFonts;
config.fonts.fontconfig.defaultFonts;
}; };
} }