modules/font: Better font config
This commit is contained in:
parent
0d1c4657ca
commit
e2f5bce9c1
|
@ -18,7 +18,9 @@ in
|
|||
|
||||
services.gnome-keyring.enable = true;
|
||||
|
||||
# e.g. for 1password
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
httpie
|
||||
wdisplays
|
||||
|
@ -67,11 +69,6 @@ in
|
|||
foot
|
||||
wofi
|
||||
|
||||
fira-code
|
||||
dejavu_fonts
|
||||
roboto
|
||||
roboto-slab
|
||||
|
||||
prusa-slicer
|
||||
htop
|
||||
|
||||
|
|
|
@ -1,7 +1,28 @@
|
|||
{
|
||||
fonts.fontconfig.defaultFonts = {
|
||||
monospace = [ "Fira Code" "Source Code Pro For Powerline" "Roboto Mono" "DejaVu Sans Mono" ];
|
||||
sansSerif = [ "Roboto Regular" "DejaVu Sans" ];
|
||||
serif = [ "Roboto Slab Regular" "DejaVu Serif" ];
|
||||
{ pkgs, ... }: {
|
||||
fonts = {
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
antialias = true;
|
||||
cache32Bit = true;
|
||||
defaultFonts = {
|
||||
monospace = [ "Fira Code" "Source Code Pro" "Roboto Mono" "DejaVu Sans Mono" ];
|
||||
sansSerif = [ "Roboto Regular" "DejaVu Sans" ];
|
||||
serif = [ "Roboto Slab Regular" "DejaVu Serif" ];
|
||||
};
|
||||
};
|
||||
enableDefaultFonts = true;
|
||||
fontDir.enable = true;
|
||||
fonts = with pkgs; [
|
||||
dejavu_fonts
|
||||
fira-code
|
||||
google-fonts
|
||||
inconsolata
|
||||
iosevka
|
||||
liberation_ttf
|
||||
nerdfonts
|
||||
roboto
|
||||
source-code-pro
|
||||
ubuntu_font_family
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue