fonts: update to nerd-fonts namespace
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
cac626eee7
commit
5cb1858b25
3 changed files with 35 additions and 25 deletions
|
@ -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";};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue