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 = {
emoji = mkOption {default = "Noto Color Emoji";};
monospace = mkOption {default = "Iosevka NFP SemiBold";};
monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};
sans-serif = mkOption {default = "Outfit";};
serif = mkOption {default = "Liberation Serif";};
};

View file

@ -26,7 +26,7 @@ in {
device_battery = "gamepad,mouse";
dynamic_frame_timing = true;
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;
fps_limit = "100,75,60,50"; # !! Monitor dependent
fps_limit_method = "early"; # Smoother frametimes compared to late

View file

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