add fonts module and use that instead
This commit is contained in:
parent
e752131a89
commit
794cf3b7f1
5 changed files with 58 additions and 6 deletions
|
@ -3,6 +3,7 @@
|
|||
./font.nix
|
||||
./firefox.nix
|
||||
./kitty.nix
|
||||
./gtk.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
10
home/common/desktop/gtk.nix
Normal file
10
home/common/desktop/gtk.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue