refactor(hm/price): migrate fonts to separate configuration

This commit is contained in:
Price Hiller 2024-08-02 00:36:13 -05:00
parent 0bde92b043
commit 0e68c666b0
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 27 additions and 48 deletions

View File

@ -0,0 +1,27 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
fontconfig
nerdfonts
fira-code
noto-fonts
twitter-color-emoji
];
fonts = {
fontconfig = {
enable = true;
defaultFonts = {
sansSerif = [ "Noto Sans" ];
serif = [ "Noto Serif" ];
monospace = [
"Fira Code"
"Noto Sans Mono"
];
emoji = [
"Twemoji"
"Noto Color Emoji"
];
};
};
};
}

View File

@ -70,7 +70,6 @@ in
neovide neovide
wezterm wezterm
kitty kitty
fontconfig
sqlite sqlite
swaylock-effects swaylock-effects
luajit luajit
@ -105,11 +104,6 @@ in
playerctl playerctl
nixfmt-rfc-style nixfmt-rfc-style
lxappearance lxappearance
twitter-color-emoji
open-sans
noto-fonts
fira-code
nerdfonts
direnv direnv
swappy swappy
stylua stylua
@ -176,8 +170,6 @@ in
sessionPath = [ "${config.xdg.dataHome}/bin" ]; sessionPath = [ "${config.xdg.dataHome}/bin" ];
}; };
fonts.fontconfig.enable = true;
xdg = { xdg = {
enable = true; enable = true;
mime.enable = true; mime.enable = true;
@ -212,41 +204,6 @@ in
}; };
configFile = { configFile = {
"hypr/hyprland.conf".enable = false; "hypr/hyprland.conf".enable = false;
"fontconfig/fonts.conf".text = ''
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Fira Code</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Fira Code</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Fira Code</family>
<family>FiraCode Nerd Font</family>
<family>Noto Sans Mono</family>
</prefer>
</alias>
<alias>
<family>emoji</family>
<prefer>
<family>Twemoji</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
</fontconfig>
'';
}; };
}; };
@ -388,11 +345,6 @@ in
name = "Kanagawa"; name = "Kanagawa";
package = pkgs.kanagawa-icon-theme; package = pkgs.kanagawa-icon-theme;
}; };
font = {
name = "Open Sans";
size = 11;
package = pkgs.open-sans;
};
gtk3.extraConfig = extraGtkConfig; gtk3.extraConfig = extraGtkConfig;
gtk4.extraConfig = extraGtkConfig; gtk4.extraConfig = extraGtkConfig;
}; };