[feat] fonts: use home-manger default fonts

This removes the need for my stylix fork (for me).
This commit is contained in:
Jalil David Salamé Messina 2024-05-20 14:15:45 +02:00
parent 4917d30606
commit bf0ee5ba2b
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 30 additions and 32 deletions

View file

@ -16,10 +16,14 @@
then pkgs.sway
else null;
cfg = jhome.gui;
cursor.package = pkgs.nordzy-cursor-theme;
cursor.name = "Nordzy-cursors";
iconTheme.name = "Papirus-Dark";
iconTheme.package = pkgs.papirus-icon-theme;
cursor = {
package = pkgs.nordzy-cursor-theme;
name = "Nordzy-cursors";
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
in {
config = lib.mkIf (jhome.enable && cfg.enable) {
home.packages = with pkgs;
@ -32,10 +36,18 @@ in {
wl-clipboard
# Extra fonts
noto-fonts-cjk # Chinese, Japanese and Korean characters
(pkgs.nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
]
++ lib.optional flatpakEnabled flatpak;
fonts.fontconfig.enable = true;
fonts.fontconfig = {
enable = true;
defaultFonts = {
emoji = ["Noto Color Emoji"];
monospace = ["JetBrains Mono" "Symbols Nerd Font"];
serif = ["Noto Serif" "Symbols Nerd Font"];
sansSerif = ["Noto Sans" "Symbols Nerd Font"];
};
};
# Browser
programs = {
firefox.enable = true;