add fonts module and use that instead

This commit is contained in:
insects 2024-08-10 22:15:21 +02:00
parent e752131a89
commit 794cf3b7f1
5 changed files with 58 additions and 6 deletions

View file

@ -3,6 +3,7 @@
./font.nix
./firefox.nix
./kitty.nix
./gtk.nix
];
home.packages = with pkgs; [

View file

@ -1,8 +1,13 @@
{ imports, config, pkgs, ... }: {
home.packages = with pkgs; [
noto-fonts
noto-fonts-emoji
];
fonts.fontconfig.enable = true;
fontProfiles = {
enable = true;
monospace = {
family = "JetBrains Mono Nerd Font";
package = pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; };
};
regular = {
family = "Fira Sans";
package = pkgs.fira;
};
};
}

View file

@ -0,0 +1,10 @@
{ config, pkgs, inputs, lib, ... }: {
gtk = {
enable = true;
font = {
name = config.fontProfiles.regular.family;
package = config.fontProfiles.regular.package;
size = 12;
};
};
}